cancel
Showing results for 
Search instead for 
Did you mean: 

SARADC_0 ICNCMR problems

Yalin Gurcan
Associate II
Posted on July 11, 2018 at 11:45

Hello everyone,

I have an SPC57S-Discovery eval board. I am trying to use both SARADC_B and SARADC_0 modules concurrently so that I can sample and eval from two channels at the same time. The code is given in the attached image. I'm trying to enable Ch0 and Ch2 on SARADC_B and Ch1 on SARADC_0. However, when the mcu is executing SAR_ADC_12BIT_0.ICNCMR[0].R =  0x40000000; it raises IVOR1 interrupt and is stuck there. Am I doing something wrong with respect to the ICNCMR register values? Or is it fundamentally not possible to sample and eval from both SARADC modules at the same time?

Thanks in advance.

#spc570s-adc
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 REPLY 1
Yalin Gurcan
Associate II
Posted on July 11, 2018 at 13:35

Nevermind, forgot to set MC_ME.PCTL[127].