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
ADC error
Moderator: Benj
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC error
Hi Patrick,
Please can you attach your program I can't do much to investigate the issue without this.
Please can you attach your program I can't do much to investigate the issue without this.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 74
- Joined: Mon Aug 23, 2010 7:07 pm
- Location: Amsterdam
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ADC error
Thanks Patrick,
I have replied with a fix for you to try.
I have replied with a fix for you to try.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel