Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] error in ccs compiler for DSPic project

Status
Not open for further replies.

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:

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:

33FJ32MC202 has no ADC supported by the high_speed_ADC functions. Use standard ADC functions instead.
 

Got it. This option is available only for dsPIC33FJxxGSxxx devices
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top