<aside> <img src="/icons/map-pin_gray.svg" alt="/icons/map-pin_gray.svg" width="40px" /> Relevant Notes/Resources: 12 Analog-to-Digital Converter Registers (Page 4 - 5)
</aside>
These pretty much just rely on your ability to read the appendix, as you will be given a list of settings and you would have to look at each register and set/clear the bits accordingly. There are some which are more obvious than others.
If not mentioned in the settings, check the value of that bit at reset ****— ****or just right all of them at . ****It may help, if we group together these settings with their respective register:0
, you at least got 50/50 chance of it being right
ATD CTL2
ATD CTL3
ATD CTL4
ATD CTL5
Now let’s fill in the bits in the register.
ADPU = 1
: The ATD needs to be powered on to actual operate.AFFC = 1
: To enable fast ATD flag clear all.ETRIGLE = 0
and ETRIGP = 0
: Since it’s not specified, by default, it is set to 0
.ETRIGE = 0
: To disable external trigger mode.ASCIE = 0
: To disable sequence complete interrupt.