Not applicable
Aug 07, 2013
02:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 07, 2013
02:00 AM
Hi,
I'm new to DAVE3 and XMC4500 and trying to figure things out. I have run through the other ADC examples without any problems, but I have an issue with the ADCSYNC001 example:
The result handler is only called once... I have not changed anything in the example just running it "out of the box". I thought the result handler should have been called repeatedly since the refill option is enabled for the master channel.
Any ideas?
Thanks,
Ingar F Pedersen
Kongsberg E-Lon
I'm new to DAVE3 and XMC4500 and trying to figure things out. I have run through the other ADC examples without any problems, but I have an issue with the ADCSYNC001 example:
The result handler is only called once... I have not changed anything in the example just running it "out of the box". I thought the result handler should have been called repeatedly since the refill option is enabled for the master channel.
Any ideas?
Thanks,
Ingar F Pedersen
Kongsberg E-Lon
- Tags:
- IFX
1 Reply
Not applicable
Aug 21, 2013
12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 21, 2013
12:11 AM
Hi Ingar F Pedersen,
You may try to add “ADC002_InitializeQueue(&ADC002_Handle0)” before exit the result event ISR?! Good luck...
Best regards,
Zain
You may try to add “ADC002_InitializeQueue(&ADC002_Handle0)” before exit the result event ISR?! Good luck...
void ChannelAResultEvt(void)
{
/* Result of the Master Channel A*/
ADCSYNC001_GetResult(&ADCSYNC001_Handle0, &ADCSYNC001_MSYNCA_Handle0, &Result[0]);
/* Result of the Slave A Channel A */
ADCSYNC001_GetResult(&ADCSYNC001_Handle0, &ADCSYNC001_MSYNCA_SA_Handle0, &Result[1]);
/* Result of the Slave B Channel A */
ADCSYNC001_GetResult(&ADCSYNC001_Handle0, &ADCSYNC001_MSYNCA_SB_Handle0, &Result[2]);
ADCSYNC001_ClearResultEvtFlag(&ADCSYNC001_Handle0, &ADCSYNC001_MSYNCA_Handle0);
ADC002_InitializeQueue(&ADC002_Handle0);
}
Best regards,
Zain