Click here to Skip to main content
14,492,569 members

Hardware & Devices

 
QuestionMessage Closed Pin
6-Jun-17 20:24
MemberMaki Young6-Jun-17 20:24 
AnswerRe: Questions about ATtiny85 Pin
Gerry Schmitz7-Jun-17 3:32
mveGerry Schmitz7-Jun-17 3:32 
QuestionDisk drive identification - compact flash vs. CFast Pin
charlieg24-May-17 17:34
Membercharlieg24-May-17 17:34 
AnswerRe: Disk drive identification - compact flash vs. CFast Pin
Gerry Schmitz25-May-17 9:48
mveGerry Schmitz25-May-17 9:48 
GeneralRe: Disk drive identification - compact flash vs. CFast Pin
charlieg27-May-17 11:58
Membercharlieg27-May-17 11:58 
GeneralRe: Disk drive identification - compact flash vs. CFast Pin
Gerry Schmitz27-May-17 13:25
mveGerry Schmitz27-May-17 13:25 
AnswerMessage Closed Pin
9-Aug-17 3:50
Memberkeptop39-Aug-17 3:50 
QuestionDiscussing with me about my program Pin
ling19958-May-17 22:17
Memberling19958-May-17 22:17 
Respected sir:
I am involving in a program which is written by myself about using MSP430F149 to control the step motor.I would like to show them here.( this is the datasheet of MSP430F149: [^]
)And I think maybe they could be improved but I don’t know how to do it. Could you give me some suggestions?
This is the program:

&lt;#include <msp430x14x.h>
typedef unsigned int uint;
typedef unsigned char uchar;
#define PWM BIT2
void int_clk()
{
uchar i;
BCSCTL1&=~XT2OFF; //open XT oscillator
BCSCTL2|=SELM1+SELS;//MCLK 8M and SMCLK 1M
do
{
IFG1 &= ~OFIFG; //clean the wrong sign of vibration
for(i = 0; i < 100; i++)
_NOP(); //delay waiting
}
while ((IFG1 & OFIFG) != 0); //If sign is 1,continue to wait
IFG1&=~OFIFG;
}
void int_pwm()
{
P1SEL|=PWM;//choose P12 to bePWM output
P1DIR|=PWM;
TACCR0=800;//PWM signal cycle 10KHz
TACCR1=400;//duty cycle 1:1
TACCTL1=OUTMOD0+OUTMOD1+OUTMOD2; //outputted mode choosing
TACTL|=TASSEL1+MC0;
}
void main()
{
WDTCTL=WDTPW+WDTHOLD;//close watchdog
int_clk(); //clock initialization
int_pwm(); //initialize PWM
while(1);//end&gt;

The program is base on controlling the return of step motor by using MSP4300f149. The outputted port of PWM is P1.2 while the signal cycle is 10KHZ. The duty cycle is 1:1.
Do you have any advice about my program?
Best wishes~
AnswerRe: Discussing with me about my program Pin
Jochen Arndt8-May-17 22:40
professionalJochen Arndt8-May-17 22:40 
QuestionDoes ADAS evaluation board come with app to view ECT signals? Pin
Member 1315949328-Apr-17 10:57
MemberMember 1315949328-Apr-17 10:57 
AnswerRe: Does ADAS evaluation board come with app to view ECT signals? Pin
Peter_in_278028-Apr-17 15:06
professionalPeter_in_278028-Apr-17 15:06 
Questiondebugging NDIS packet sniffer Pin
ForNow27-Apr-17 13:12
MemberForNow27-Apr-17 13:12 
AnswerRe: debugging NDIS packet sniffer Pin
Randor 27-Apr-17 18:33
professional Randor 27-Apr-17 18:33 
GeneralMessage Closed Pin
26-May-17 12:00
MemberMember 1322513326-May-17 12:00 
AnswerRe: debugging NDIS packet sniffer Pin
Munchies_Matt28-Apr-17 5:06
MemberMunchies_Matt28-Apr-17 5:06 
QuestionThe troubles about PIC18F87K22 Pin
ling199530-Mar-17 23:00
Memberling199530-Mar-17 23:00 
AnswerMessage Closed Pin
20-Jun-17 20:54
MemberVicky6620-Jun-17 20:54 
QuestionWhich Build would you recommend? Pin
LovesCSharp14-Mar-17 5:48
MemberLovesCSharp14-Mar-17 5:48 
AnswerRe: Which Build would you recommend? Pin
Richard Andrew x6414-Mar-17 6:51
professionalRichard Andrew x6414-Mar-17 6:51 
GeneralRe: Which Build would you recommend? Pin
LovesCSharp14-Mar-17 9:09
MemberLovesCSharp14-Mar-17 9:09 
AnswerRe: Which Build would you recommend? Pin
Eddy Vluggen14-Mar-17 8:02
professionalEddy Vluggen14-Mar-17 8:02 
GeneralRe: Which Build would you recommend? Pin
LovesCSharp14-Mar-17 9:10
MemberLovesCSharp14-Mar-17 9:10 
GeneralRe: Which Build would you recommend? Pin
Eddy Vluggen14-Mar-17 9:26
professionalEddy Vluggen14-Mar-17 9:26 
AnswerRe: Which Build would you recommend? Pin
Randor 17-Mar-17 10:31
professional Randor 17-Mar-17 10:31 
Generalhp officejet 6500 support Pin
peterkyle21-Feb-17 15:15
Memberpeterkyle21-Feb-17 15:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.