XMC4500: ADC: sync conversions

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

cross mob
jsmith678x
Level 4
Level 4
100 sign-ins 25 replies posted First solution authored

Hi,

I'm studying the DAVE Help/VADC_GROUP_CONFIG app manual/Example to illustrate synchronous conversions. 

It is not clear which is the second channel. The example talks about Channel 2 of some group but I think we need an another channel to measure also. Which channel will be the second channel to be measured?

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

I think I can give some more clarity. Synchronization in the XMC4XXX VADC works with a master-slave concept. When the master starts a synchronous conversion, the slaves cancel the actual conversion and respond with a ready signal. When the master and the slaves are ready the conversion is started. After this conversion the slaves inject and repeat the canceled conversion.

The synchronous conversion has some constrains. The channel number from master and the slaves are the same. For example, if the master requests channel 5 the synchronous slave channel is also converting channel 5. This limit of free pin mapping can be solved with the ALIAS feature (check for Programmable Remapping of Analog Inputs – The Alias Feature).

Now in the associated code example the channels 1 and 0 of group 1 are converted at the same time as channel 1 and 0 of group 0. The channels are configured as refill so the queue will be fed again with these channels after each conversion.

Best Regards,
Vasanth

View solution in original post

0 Likes
2 Replies
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Kindly check this appnote section on synchronous conversion and examples.

Best Regards,
Vasanth

0 Likes
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

I think I can give some more clarity. Synchronization in the XMC4XXX VADC works with a master-slave concept. When the master starts a synchronous conversion, the slaves cancel the actual conversion and respond with a ready signal. When the master and the slaves are ready the conversion is started. After this conversion the slaves inject and repeat the canceled conversion.

The synchronous conversion has some constrains. The channel number from master and the slaves are the same. For example, if the master requests channel 5 the synchronous slave channel is also converting channel 5. This limit of free pin mapping can be solved with the ALIAS feature (check for Programmable Remapping of Analog Inputs – The Alias Feature).

Now in the associated code example the channels 1 and 0 of group 1 are converted at the same time as channel 1 and 0 of group 0. The channels are configured as refill so the queue will be fed again with these channels after each conversion.

Best Regards,
Vasanth

0 Likes