Click here to Skip to main content
15,886,199 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
AnswerRe: Amplifier and Speaker Pin
Wendelius15-Jun-17 18:06
mentorWendelius15-Jun-17 18:06 
AnswerRe: Amplifier and Speaker Pin
Jochen Arndt20-Jun-17 23:58
professionalJochen Arndt20-Jun-17 23:58 
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
charlieg24-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
charlieg27-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 
QuestionDiscussing with me about my program Pin
ling19958-May-17 22:17
ling19958-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
(Mike) ipscone 28-Apr-17 10:57
(Mike) ipscone 28-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
ForNow27-Apr-17 13:12 
AnswerRe: debugging NDIS packet sniffer Pin
Randor 27-Apr-17 18:33
professional Randor 27-Apr-17 18:33 
AnswerRe: debugging NDIS packet sniffer Pin
Munchies_Matt28-Apr-17 5:06
Munchies_Matt28-Apr-17 5:06 
QuestionThe troubles about PIC18F87K22 Pin
ling199530-Mar-17 23:00
ling199530-Mar-17 23:00 
QuestionWhich Build would you recommend? Pin
LovesCSharp14-Mar-17 5:48
LovesCSharp14-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
LovesCSharp14-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
LovesCSharp14-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
peterkyle21-Feb-17 15:15 
GeneralRe: hp officejet 6500 support Pin
Richard MacCutchan21-Feb-17 23:19
mveRichard MacCutchan21-Feb-17 23:19 
QuestionEditing of a DVD burner's firmware Pin
F900616-Jan-17 7:56
F900616-Jan-17 7:56 

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.