Page 1 of 1

PIC18F2480 with the servo controller component

Posted: Fri May 03, 2024 8:51 pm
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"

Re: PIC18F2480 with the servo controller component

Posted: Fri May 03, 2024 9:37 pm
by kersing
Just a guess, because the component code tells it to do so? Have you checked the C code for references to CCP2?

Re: PIC18F2480 with the servo controller component

Posted: Sat May 04, 2024 11:14 pm
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.

Re: PIC18F2480 with the servo controller component

Posted: Sun May 05, 2024 8:26 pm
by IanC
Thanks Ben, I'll use a better PIC.