CCP1 on a 4455 at RC2?

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
kdoney34711
Posts: 25
Joined: Tue Sep 29, 2009 1:07 pm
Has thanked: 1 time

CCP1 on a 4455 at RC2?

Post 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?

User avatar
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?

Post 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.

Post Reply