Hi, Malc
The trick is to fire all 4 pulses at the same time ... and use the COMPARE function of a CCP to turn pulses off ...
of course, you must calculate at first which is turned off in 1st, 2nd ...etc.
and load the COMPARE value according to that.
http://mathieu.agopian.free.fr/prog_pic/servoter/
Alain
PS: another way is to use the CCS RTOS tool ... but ... not PbP anymore !
re P.S. ... You have too much things running at the same time, these days ... LOL
Last edited by Acetronics2; - 27th December 2009 at 10:36.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks