How to configure external voltage?XMC1300

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

cross mob
Not applicable
Hi,I'm a freshman. I can't set ADC external voltage well.
relevant code:

SHS0->SHSCFG = ((0x1 << SHS_SHSCFG_SCWC_Pos) & SHS_SHSCFG_SCWC_Msk) |
((0x0 << SHS_SHSCFG_AREF_Pos) & SHS_SHSCFG_AREF_Msk) ;

input external reference voltage into pin VDD , but there is no different.

pls help me. How to program and set relevant pins.
0 Likes
1 Reply
Travis
Employee
Employee
First solution authored Welcome! 500 replies posted
Hi, By default SHS0_SHSCFG.AREF = 00 is configured to external voltage reference. Other configuration is not accepted as they are reserved.

Are you trying to use a different reference voltage other than the default one?
0 Likes