SARADC_0 ICNCMR problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-07-11 02:45 AM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2018-07-11 04:35 AM
Nevermind, forgot to set MC_ME.PCTL[127].