PIC18F2480 with the servo controller component

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
IanC
Posts: 5
http://meble-kuchenne.info.pl
Joined: Sat Feb 27, 2021 5:39 pm

PIC18F2480 with the servo controller component

Post by IanC »

I am using the servo controller set to 8 channels connected to port B on the 18F2480.

When I try to build to hex I get a CCP2 error. According to the data sheet there is only a CCP1 register in the device.
Can anyone shed any light as to why the XC8 compiler is trying to use CCP2 when it does not exist?

error: (192) undefined identifier "CCP2CON"

kersing
Valued Contributor
Posts: 162
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 69 times
Been thanked: 58 times

Re: PIC18F2480 with the servo controller component

Post by kersing »

Just a guess, because the component code tells it to do so? Have you checked the C code for references to CCP2?

BenR
Matrix Staff
Posts: 1760
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 447 times
Been thanked: 607 times

Re: PIC18F2480 with the servo controller component

Post by BenR »

Hello is it possible for you to use a more up to date version of the micro with 2 or more ccp available. The servo motor component uses two ccp peripherals on pic devices to do the servo motor timing.

IanC
Posts: 5
Joined: Sat Feb 27, 2021 5:39 pm

Re: PIC18F2480 with the servo controller component

Post by IanC »

Thanks Ben, I'll use a better PIC.

Post Reply