View Full Version : A PWM question
  
dbachman
- 20th January 2011, 04:32
If I am using this statement, PWM portb.7, 127,100.
Is there a way to stop it before it finishes?
Thanks, Don
ScaleRobotics
- 20th January 2011, 05:35
Yes, remove power from the PIC ;)
Once you start a pwm software based pwm, it will complete before it moves on.
dbachman
- 20th January 2011, 05:44
Yes, remove power from the PIC ;)
Once you start a pwm software based pwm, it will complete before it moves on.
 
Thats what I thought. I guess I will use HPWM.
Thanks,
Acetronics2
- 20th January 2011, 13:52
Objection ... :D
 
an asm interrupt can stop it ... but with an external action ! ( also possible with a timer ... but what the real use ? )
 
Alain
dbachman
- 21st January 2011, 01:14
Objection ... :D
 
an asm interrupt can stop it ... but with an external action ! ( also possible with a timer ... but what the real use ? )
 
Alain
 
Hi Acetronics,
I want to output a pulse train to a stepper driver controller to turn a rotary table. If I make a mistake in entry or part way through the router cut I want to stop it. I realize I can just turn it off but wanted something different.
Thanks, Don
mister_e
- 21st January 2011, 06:30
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...
Originally Posted by Acetronics
Objection ... :D- Objection acceptée
- Merci votre honneur
 
Powered by vBulletin® Version 4.1.7 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.