If I am using this statement, PWM portb.7, 127,100.
Is there a way to stop it before it finishes?
Thanks, Don
If I am using this statement, PWM portb.7, 127,100.
Is there a way to stop it before it finishes?
Thanks, Don
Yes, remove power from the PIC
Once you start a pwm software based pwm, it will complete before it moves on.
http://www.scalerobotics.com
Objection ...
an asm interrupt can stop it ... but with an external action ! ( also possible with a timer ... but what the real use ? )
Alain
Last edited by Acetronics2; - 20th January 2011 at 12:56.
************************************************** ***********************
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 " !!!
*****************************************
Timmer interrupt, HPWM would work. A huge "safety Break" button in serie is never a bad idea in case the driver goes nuts. Current read from the motor, feed into the pic and all plah plah is also a nice extra... Even better if you keep track of every "events" around...
- Objection acceptéeOriginally Posted by Acetronics
Objection ...![]()
- Merci votre honneur
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks