atferrari
Full Member level 4
- Joined
- Jun 29, 2004
- Messages
- 237
- Helped
- 7
- Reputation
- 14
- Reaction score
- 3
- Trophy points
- 1,298
- Location
- Buenos Aires - Argentina
- Activity points
- 1,996
Today I started to experiment with PWM in a 16F877. Got both PWM modules working in minutes.
While period can be finely ajusted with 10-bits precision, the duty cycle seems more complicate due to the two LSB in CCP1CON<5:4>.
I have no specific application in mind but when tried to increase/decrease the duty cycle value I've realized that trying to change it down to the LSB would demand too much code other than INCF / DECF.
For an eventual application requiring a fast adjustment, is it any way to do it or we have to accept adjusting only the value in CCPR1L?
Agustín Tomás
While period can be finely ajusted with 10-bits precision, the duty cycle seems more complicate due to the two LSB in CCP1CON<5:4>.
I have no specific application in mind but when tried to increase/decrease the duty cycle value I've realized that trying to change it down to the LSB would demand too much code other than INCF / DECF.
For an eventual application requiring a fast adjustment, is it any way to do it or we have to accept adjusting only the value in CCPR1L?
Agustín Tomás