VADC not working in Triboard.

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

cross mob
DSRnathan
Level 3
Level 3
50 sign-ins 25 replies posted 25 sign-ins
Hello All,
I tried to use ADC using Triboard TC277 with the help of Aurix provided example "ADC Background Scan_1". the hardware connection i made is, I simply connected a 10K potentiometer to vary the voltage on the "AN0" pin.
when i tried to run I found the ADC conversion is not working despite I change the voltage level(0 - 5V). All I am noticing is the junk values of the noise produced on the pin.
What do i need to do to get the ADC working. the below are the register values to configure the channel.

GLOBCFG.DIVA = 4 "but I see 2 here in the debugger"
GLOBCFG.DIVD = 0
GxARBCFG.ARBRND = 0
Vadc digitalFrequency = 1e8
Vadc analog Frequency 2e7
Vadc module frequency 1e8
Sample time = 1e6

STCS = 14;

Kindly help me in this regard.
Deepak
0 Likes
0 Replies