Page 1 of 1

ADC error

Posted: Thu Apr 18, 2019 12:41 pm
by patrick schoon
Hi,

I got several errors with using a second adc component.

See listng:

C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Enable()
4786: ADREF = 0x00;
^ (192) undefined identifier "ADREF"
4801: ADPCH = 0x01;
^ (192) undefined identifier "ADPCH"
5038: ADCLK = Conv_Speed & 0x3F;
^ (192) undefined identifier "ADCLK"
5049: ADCON0bits.ADGO = 1;
^ (255) not a member of the struct/union ""
^ (182) illegal conversion between types
int -> volatile union S55
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_ADC.c: FC_CAL_ADC_Sample()
5057: while (ADCON0bits.ADGO);
^ (255) not a member of the struct/union ""
^ (199) logical type required
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Enable_2()
198: CCP5CON = 0x9F;
^ (192) undefined identifier "CCP5CON"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Disable_2()
384: CCP5CON = 0x00;
^ (192) undefined identifier "CCP5CON"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_SetDuty8Bit_2()
519: CCPR5H = duty;
^ (192) undefined identifier "CCPR5H"
520: CCPR5L = 0;
^ (192) undefined identifier "CCPR5L"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_SetDuty10Bit_2()
1211: CCPR5H = duty >> 2;
^ (192) undefined identifier "CCPR5H"
1212: CCPR5L = duty << 6;
^ (192) undefined identifier "CCPR5L"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Enable_3()
174: CCP4CON = 0x9F;
^ (192) undefined identifier "CCP4CON"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Disable_3()
374: CCP4CON = 0x00;
^ (192) undefined identifier "CCP4CON"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_SetDuty8Bit_3()
502: CCPR4H = duty;
^ (192) undefined identifier "CCPR4H"
503: CCPR4L = 0;
^ (192) undefined identifier "CCPR4L"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_SetDuty10Bit_3()
1191: CCPR4H = duty >> 2;
^ (192) undefined identifier "CCPR4H"
1192: CCPR4L = duty << 6;
^ (192) undefined identifier "CCPR4L"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: FC_CAL_PWM_Enable_5()
150: CCP3CON = 0x9F;
^ (192) undefined identifier "CCP3CON"
C:\Program Files (x86)\Flowcode 7\CAL\PIC\PIC_CAL_PWM.c: 364: too many errors (21)
(908) exit status = 1
(908) exit status = 1
C:\Program Files (x86)\Microchip\xc8\v2.05\bin\xc8.exe reported error code 1

Re: ADC error

Posted: Thu Apr 18, 2019 12:55 pm
by Benj
Hi Patrick,

Please can you attach your program I can't do much to investigate the issue without this.

Re: ADC error

Posted: Thu Apr 18, 2019 1:19 pm
by patrick schoon
Hi,

I Send it to you personal..

Re: ADC error

Posted: Thu Apr 18, 2019 3:23 pm
by Benj
Thanks Patrick,

I have replied with a fix for you to try.