CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

problem with l6208

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ezio
Guest







problem with l6208
PostPosted: Fri Jul 14, 2006 1:07 am     Reply with quote

I have a problem with l6208 stepper driver. I use three pins: enable, dir, clock.

When I turn on the pic while my software is doing other things the motor moves random, then when there is the instruction: output_high(enable pin) and I send commands to clock and dir it is all ok.
how can I do?

Thank you
Ttelmah
Guest







PostPosted: Fri Jul 14, 2006 4:03 am     Reply with quote

Try adding a high vaue resistor (something like 470K), between the enable pin, and GND.
Remember that when the PIC wakes up, till you 'drive' the output pin, the pin sits programmed as an input. Like this, lines can float. The only way to deal with this, is to ensure that when the PIC is not driving, lines default to their 'off' state (hence the resistor). The EN pin on these chips, if I remember correctly, is a very high impedance input, and so can end up floating to an 'active' level.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group