Hello,
I am doing some testing on using pwm with a 16f628a. Have read both the datasheet for the pic, the Mid-Range Ref Manual, and have tested a sample code using gpsim. I would like your help to clarify a couple of points
1) PWM operations can be controlled by either turning TMR2 on/off OR enabling/disabling PWM on the CCP module
2) While PWM is operational, no interrupts are fired. Polling (as per example on the Ref manual) can be done on the TMR2IF if needed (for example to change the duty cycle)
3) RB3, once configured as output, will generate the relevant output (once the PWM module is set up correctly - I am asking this as gpsim did not produce an output on RB3 - tested using polling of TMR2IF).
Thanks for your time
I am doing some testing on using pwm with a 16f628a. Have read both the datasheet for the pic, the Mid-Range Ref Manual, and have tested a sample code using gpsim. I would like your help to clarify a couple of points
1) PWM operations can be controlled by either turning TMR2 on/off OR enabling/disabling PWM on the CCP module
2) While PWM is operational, no interrupts are fired. Polling (as per example on the Ref manual) can be done on the TMR2IF if needed (for example to change the duty cycle)
3) RB3, once configured as output, will generate the relevant output (once the PWM module is set up correctly - I am asking this as gpsim did not produce an output on RB3 - tested using polling of TMR2IF).
Thanks for your time