This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS1224: Trigger AD convert, How configure with interrupt notifiy when ADC convert is finished.

Part Number: TMS570LS1224
Other Parts Discussed in Thread: HALCOGEN

Dear all:

         I am try to config AD with software trigger, and interrupt notify.

         But from HALCOGen, It looks no way to config interrupt. and also no example for it.

Best Regards

Fred

  • Hello,
    When you enable ADCn Group m Interrupt in VIM (for example ADC1 Group 1 interrupt is enabled in VIM Channel 0-31 tab, cahnnel 15) HALCoGen will generate interrupt handler adcnGroupmInterrupt (for example adc1Group1Interrupt) in adc.c . Also in adc.c adcEnableNotification is generated .
    In your main.c you have to enable CPU interrupts first ( _enable_IRQ_interrupt_(); ) then call adcEnableNotification to enable ADC peripheral interrupt requests.



    Best regards,
    Miro