i'm trying to control a small servo motor with my pic. But when i try to compile the code i get the following error messages:
Code: Select all
Device: PIC.12F.12F1572
Generated by: Flowcode v7.2.1.4
Microchip MPLAB XC8 C Compiler (Free Mode) V1.40
Build date: Nov 30 2016
Part Support Version: 1.40
Servo1330.c: main()
109: {
^ (314) ";" expected
122: if (FCV_0dd21_Servo_Controller1__SERVO_IDX < 1)
^ (192) undefined identifier "FCL_SERVOCAL"
(981) pointer required ^
(981) pointer required ^
280: MX_SERVO_REG_CCPR2H = ( FCL_SERVOCAL >> 8 );
^ (192) undefined identifier "MX_SERVO_REG_CCPR2H"
281: MX_SERVO_REG_CCPR2L = ( FCL_SERVOCAL & 0xFF );
^ (192) undefined identifier "MX_SERVO_REG_CCPR2L"
306: MX_SERVO_REG_CCP1Fbits.MX_SERVO_FLAG_CCP1F = 0;
^ (192) undefined identifier "MX_SERVO_REG_CCP1Fbits"
(196) struct/union required ^
Servo1330.c:
314: {
^ (374) missing basic type; int assumed (warning)
^ (314) ";" expected
321: if (FCV_0dd21_Servo_Controller1__SERVO_IDX < 1)
^ (285) no identifier in declaration
^ (374) missing basic type; int assumed (warning)
^ (314) ";" expected
^ (194) ")" expected
^ (285) no identifier in declaration
^ (374) missing basic type; int assumed (warning)
^ (314) ";" expected
Servo1330.c: 330: too many errors (21)
(908) exit status = 1
(908) exit status = 1
What do i have to do, to use the Servo with this type of pic?
Regards
Speed64