CCP1 on a 4455 at RC2?
Moderator: Benj
-
- Posts: 25
- Joined: Tue Sep 29, 2009 1:07 pm
- Has thanked: 1 time
CCP1 on a 4455 at RC2?
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?
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: CCP1 on a 4455 at RC2?
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel