I did, it looks the same to me. I must have missed something.
bit 7 and 6 are 00 = Single output; P1A modulated; P1B, P1C, P1D assigned as port pins
bit 5 and 4 are the two LSbs of the PWM duty cycle. The eight MSbs are found in CCPR1L. I guess I do not know what to put in here or how to find out what should go in here. I thought duty>>2 took care of this.
and 3 - 0 are 1100 = PWM mode; P1A, P1C active-high; P1B, P1D active-high
Bookmarks