Mar 25, 2018 #1 G garimella Full Member level 5 Joined Aug 25, 2011 Messages 260 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,296 Activity points 3,276 Using Version 5 of ccs compiler. I tried compiling the following code but the compiler throws error. I have taken this code from compiler manual to sample 4 channels simultaneously. Code: #include <main.h> void main() { int16 result[4]; setup_high_speed_adc(ADC_CLOCK_DIV_4); setup_high_speed_adc_pair(0, GLOBAL_SOFTWARE_TRIGGER); setup_high_speed_adc_pair(4, GLOBAL_SOFTWARE_TRIGGER); while(TRUE) { read_high_speed_adc(result); } Error message: undefined identifier setup_high_speed_adc undefined identifier setup_high_speed_adc_pair undefined identifier read_high_speed_adc What could be the problem? Last edited by a moderator: Mar 25, 2018
Using Version 5 of ccs compiler. I tried compiling the following code but the compiler throws error. I have taken this code from compiler manual to sample 4 channels simultaneously. Code: #include <main.h> void main() { int16 result[4]; setup_high_speed_adc(ADC_CLOCK_DIV_4); setup_high_speed_adc_pair(0, GLOBAL_SOFTWARE_TRIGGER); setup_high_speed_adc_pair(4, GLOBAL_SOFTWARE_TRIGGER); while(TRUE) { read_high_speed_adc(result); } Error message: undefined identifier setup_high_speed_adc undefined identifier setup_high_speed_adc_pair undefined identifier read_high_speed_adc What could be the problem?
Mar 25, 2018 #2 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,427 Helped 14,752 Reputation 29,786 Reaction score 14,105 Trophy points 1,393 Location Bochum, Germany Activity points 298,127 As told in CCS online help Only on dsPIC33FJxxGSxxx devices Click to expand... Didn't include a respective device file.
As told in CCS online help Only on dsPIC33FJxxGSxxx devices Click to expand... Didn't include a respective device file.
Mar 25, 2018 #3 G garimella Full Member level 5 Joined Aug 25, 2011 Messages 260 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,296 Activity points 3,276 Yes my header file given below Code: #include <33FJ32MC202.h> #FUSES NOWDT //No Watch Dog Timer #FUSES CKSFSM //Clock Switching is enabled, fail Safe clock monitor is enabled #FUSES NOJTAG //JTAG disabled #device ICSP=1 #use delay(crystal=20000000) Last edited by a moderator: Mar 25, 2018
Yes my header file given below Code: #include <33FJ32MC202.h> #FUSES NOWDT //No Watch Dog Timer #FUSES CKSFSM //Clock Switching is enabled, fail Safe clock monitor is enabled #FUSES NOJTAG //JTAG disabled #device ICSP=1 #use delay(crystal=20000000)
Mar 25, 2018 #4 FvM Super Moderator Staff member Joined Jan 22, 2008 Messages 52,427 Helped 14,752 Reputation 29,786 Reaction score 14,105 Trophy points 1,393 Location Bochum, Germany Activity points 298,127 33FJ32MC202 has no ADC supported by the high_speed_ADC functions. Use standard ADC functions instead.
33FJ32MC202 has no ADC supported by the high_speed_ADC functions. Use standard ADC functions instead.
Mar 26, 2018 #5 G garimella Full Member level 5 Joined Aug 25, 2011 Messages 260 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,296 Activity points 3,276 Got it. This option is available only for dsPIC33FJxxGSxxx devices