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"
PIC18F2480 with the servo controller component
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Sat Feb 27, 2021 5:39 pm
-
- 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
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel