Xmc4500 adc

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

cross mob
Not applicable
Hello !

I want to use VADC to start a single conversion. But: not by using DAVE. Just step by step on register base ...

Questions:

1)
After reading the reference, I dont know exactly, how to insert trigger events into the queue for source-0.
I should write into QINR0 register - but when is this register forwarded into the queue? There are several fields - do I have to fill the whole register in one step and it is inserted into the queue at every write access?
Or did I miss some information?

2)
When using "refill"
/* refill */
inr0 |= VADC_G_QINR0_RF_Msk;

is it enough to setup the queue once and it is refilled after conversion?

3)
What type of source do you reccomend, if I yust want to convert a single channel once? queue or sequence?

Many thanks,
Michael
0 Likes
1 Reply
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi Michael,


You can find many ADC example from this link which does not use DAVE.

Look under the section for Application notes and choose

Device Guide - XMC4000 - Analog-to-Digital Converter (ADC)
Device Guide - XMC4000 - Analog-to-Digital Converter (ADC) - Example Code

http://www.infineon.com/cms/en/product/microcontrollers/32-bit-xmc4000-industrial-microcontrollers-a...
0 Likes