If I am using this statement, PWM portb.7, 127,100.
Is there a way to stop it before it finishes?
Thanks, Don
Printable View
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.
Objection ... :D
an asm interrupt can stop it ... but with an external action ! ( also possible with a timer ... but what the real use ? )
Alain
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éeQuote:
Originally Posted by Acetronics
Objection ... :D
- Merci votre honneur