Page 1 of 1
CCP1 on a 4455 at RC2?
Posted: Tue Feb 01, 2011 6:37 pm
by kdoney34711
When I lookup CCP1 on the chip chart in Flowcode it shows up at pin RC2. In the .h file for the chip it (CCPR1) shows up as 0FBE but the C Port starts at 0F82! I'm missing something. If I set duty cycle of PWM(0) which is located at CCP1 to 125, shouldn't the 1's and 0's change somewhere on the C Port?
Re: CCP1 on a 4455 at RC2?
Posted: Wed Feb 02, 2011 10:08 am
by Benj
Hello,
The numbers you are seeing 0FBE and 0f82 are the locations of the different registers on the device. The CCP functionality overrides the port C pin register when the CCP peripheral is made active.
In Flowcode the PWM is numbered 1 and 2 so make sure you are passign an idx of 1 when you are calling the PWM component macros.