Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

DAVE™ Forum Discussions

Not applicable
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
0 Likes
1 Reply
Not applicable
Hi Ingar F Pedersen,

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
0 Likes