VADC - How to request a conversion with software triggers?

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

cross mob
Not applicable
Hi all,

I am having troubles figuring out how to use software triggers to request conversions with VADC on my XMC4400 micro. The reference manual states that there conversions may be requested by external signals (GPIO pins used for input), on-chip signals (e.g. PWM status bit) and software triggers. I can't seem to figure out how to trigger the request source with software? Which registers should I take a look at to figure this out?

Thank you!

Best regards,
Andrey
0 Likes
2 Replies
lock attach
Attachments are accessible only for community members.
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi agrus,

Can you take reference from this example?

Pls make the below changes to the VADC.c.


#define VADC_HARDWARE_TRIGGER 0 // 0 = Software trigger, 1 = Hardware trigger
0 Likes
Not applicable
Travis,

Thank you! This is exactly what I need.

Best regards,
Andrey
0 Likes