Click here to Skip to main content
16,003,611 members
Home / Discussions / Hardware & Devices
   

Hardware & Devices

 
GeneralRe: Device Driver Feasibility Pin
Richard Andrew x6413-Aug-17 9:01
professionalRichard Andrew x6413-Aug-17 9:01 
GeneralRe: Device Driver Feasibility Pin
Randor 14-Aug-17 1:53
professional Randor 14-Aug-17 1:53 
GeneralRe: Device Driver Feasibility Pin
Richard Andrew x6414-Aug-17 12:36
professionalRichard Andrew x6414-Aug-17 12:36 
GeneralRe: Device Driver Feasibility Pin
Randor 15-Aug-17 7:27
professional Randor 15-Aug-17 7:27 
GeneralRe: Device Driver Feasibility Pin
Richard Andrew x6425-Aug-17 9:55
professionalRichard Andrew x6425-Aug-17 9:55 
GeneralRe: Device Driver Feasibility Pin
Randor 30-Aug-17 17:50
professional Randor 30-Aug-17 17:50 
AnswerRe: Very low temperature (-25C) on ds18b20 precision Pin
Richard MacCutchan18-Jul-17 23:25
mveRichard MacCutchan18-Jul-17 23:25 
GeneralRe: Very low temperature (-25C) on ds18b20 precision Pin
Richard Deeming19-Jul-17 7:26
mveRichard Deeming19-Jul-17 7:26 
GeneralRe: Very low temperature (-25C) on ds18b20 precision Pin
Richard MacCutchan19-Jul-17 7:40
mveRichard MacCutchan19-Jul-17 7:40 
GeneralRe: Very low temperature (-25C) on ds18b20 precision Pin
Richard Deeming19-Jul-17 7:44
mveRichard Deeming19-Jul-17 7:44 
QuestionHard drive making noise Pin
keptop317-Jul-17 19:20
keptop317-Jul-17 19:20 
AnswerRe: Hard drive making noise Pin
Jochen Arndt18-Jul-17 23:13
professionalJochen Arndt18-Jul-17 23:13 
AnswerRe: Hard drive making noise Pin
Member 1353404121-Nov-17 10:13
Member 1353404121-Nov-17 10:13 
AnswerRe: I have three DS18B20's. I can't tell if any of them are working correctly Pin
Gerry Schmitz21-Jun-17 3:30
mveGerry Schmitz21-Jun-17 3:30 
AnswerRe: NE555n timer or NE555p timer? Pin
Richard MacCutchan18-Jun-17 22:51
mveRichard MacCutchan18-Jun-17 22:51 
QuestionAmplifier and Speaker Pin
schmähdandler15-Jun-17 13:39
schmähdandler15-Jun-17 13:39 
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 

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.