AnsweredAssumed Answered

TWR-KM34Z ADC Configuration

Question asked by Homar Pizar on Jul 21, 2016
Latest reply on Jul 29, 2016 by Martin Mienkina

Dear all,

I´m working with the TWR-KM34Z50MV3, and I want to read 7 signals using the 4 SD ADC and 3 SAR ADC of the board.

Know I´m trying to configure the SAR ADC´s using the MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.5,  but I can´t deal with the configuration, beacause if I want to use all channel they must to be triggered by HW.

I´ve set the ADC_Init(cfg,avg,CHA,CHB,CHC,CHD,ip,callback) as follows:

ADC_Init  (ADC_MODULE_16B_HWTRG_IREF_CONFIG,

             HWAVG_OFF,

             ADC_CH_SE_IRQ_CONFIG(AD10),

            ADC_CH_SE_IRQ_CONFIG(AD0),

            ADC_CH_SE_IRQ_CONFIG(AD1),

            ADC_CH_SE_IRQ_CONFIG(AD2),

             PRI_LVL0,

            (ADC_CALLBACK) Callback_ADC);

but the ADC Callback doesn´t run.

Do I have to do something with the callback function?

How I must configurate the hardware interrupt?

Is it something missing?

 

Please help me.

 

Omar.

Outcomes