- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Baranidharan
I'm working on a similar configuration, please share your ADC setting so I can check where is the issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank You for the Response ,
1 ) i m using Tom1_13 to trigger the Group 2 for testing purpose
st_Gtm->ADCTRIG[1].OUT0.B.SEL2 = 3;
2 ) under the init EVADC group function i m selecting ADCTRIG [1]
adcGroupConfig.arbiter.requestSlotQueue0Enabled = TRUE;
adcGroupConfig.queueRequest[0].triggerConfig.gatingMode = IfxEvadc_GatingMode_always;
adcGroupConfig.queueRequest[0].triggerConfig.triggerMode = IfxEvadc_TriggerMode_uponRisingEdge;
adcGroupConfig.queueRequest[0].triggerConfig.triggerSource = IfxEvadc_TriggerSource_9; // GTM - ADCTRIG [1]
3 ) Under the initEVADC Channel function i m adding 6 channels using idx[0:5] in for loop and make one of the channel to trigg interrupt
adcChannelConfig[idx].channelId = (IfxEvadc_ChannelId)(g_grp2channels[idx]);
adcChannelConfig[idx].resultRegister = (IfxEvadc_ChannelResult)(g_grp2channels[idx]);
adcChannelConfig[0].channelPriority = 1;
//adcChannelConfig[0].resultPriority = 1;
adcChannelConfig[0].channelServProvider =IfxSrc_Tos_cpu0;
adcChannelConfig[0].limitCheck = IfxEvadc_LimitCheck_always;
4 ) AdcIsrHandler function call the ReadEVADC
IFX_INTERRUPT(AdcIsrHandler, 0, 1);
5 ) inside the ReadEVADC i m toggle one led .. and store the adc values in a varibale
i m sharing the trigger pulse for your reference
Green is LED toggle , Red is TOM output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how do you set the EXTR bit when you set up the queue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
we are calling this in EVADC init
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think the problem is here. Try to set EXTR on only on the first element of the queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for the immediate response issue solved , ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Baranidharan,
Coud you please Share the whole c code ?
I am trying to do the same but My Adcs are never triggered 😞
thanks in advance
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No Problem... I'm just in these days doing more or less the same trigger config with a queue (but not using illd), if you want to share with me your config I'll be really glad to compare it with my setting!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content