Other Parts Discussed in Thread: HALCOGEN
Hi,
I'm trying to setup an application to acquire continuously by an ADC channel, The ADC is triggered in single conversion mode by the RTI. At FIFO full the ADC should call an iterrupt function to treat the data. The application should run indefenitly.
My HalCoGenSteps:
- enable RTI, ADC1 and SCI2 drivers (the latter for debug messages)
- enable ADC1 event IRQ (number 14) in VIM channel 0-31 panel
- in "ADC1 Group event" panel set FIFO size to 32, RTI_COMP0 as trigger and Enable PIN0
- in "ADC1 Memory" tab set BNDA to 32 and BNDB to 0
In the sys_main.c main function I've added:
sciInit();
adcInit();
adcREG1->GxINTCR[0] = 0x0f;
adcEnableNotification(adcREG1,adcGROUP0);
adcStartConversion(adcREG1,adcGROUP0);
rtiInit();
rtiStartCounter(rtiCOUNTER_BLOCK0);
rtiREG1-> SETINTENA = (0x01U << 8);
rtiEnableNotification(rtiNOTIFICATION_COMPARE0);
rtiStartCounter(rtiCOUNTER_BLOCK0);
_enable_IRQ();
while(1);
Running the code the "adc1Group0Interrupt" function (the ADC IRQ callbacjk) is called only once.
Where is the error? Do I forgot something?
Thank you,
Matteo

