i've also noticed you've shifted 2 bits on the right the CCPR1L
CCPR1L = 210>>2 ' Set PWM Duty-Cycle to 50%
So the CCPR1L value will be 52.
(11010010) 210>>2 = 00110100 = 52
why have we shifted?
i've also noticed you've shifted 2 bits on the right the CCPR1L
CCPR1L = 210>>2 ' Set PWM Duty-Cycle to 50%
So the CCPR1L value will be 52.
(11010010) 210>>2 = 00110100 = 52
why have we shifted?
Last edited by astanapane; - 1st June 2023 at 09:01.
Bookmarks