tyassin
Advanced Member level 1
Hello,
When your PWM is running and you want to change the duty cycle:
I would just write a new value to the CCPR1L register and then I guess it changes on the next instruction in the PIC?
But how will the transistion look like? will it automaticlly wait until the next period or just change abruptly?
Or is there an "elegant" way of programming this?
Thank you
When your PWM is running and you want to change the duty cycle:
I would just write a new value to the CCPR1L register and then I guess it changes on the next instruction in the PIC?
But how will the transistion look like? will it automaticlly wait until the next period or just change abruptly?
Or is there an "elegant" way of programming this?
Thank you
Last edited: