Content originally posted in LPCWare by R2D2 on Wed Jun 12 11:50:56 MST 2013
Quote: qwerty
However, I can't get it to work.
:confused:
So what's not working? No conversion, no result, no risk, no fun?
Looks like a good idea to read UM10360 ADC chapter.
Especially:
Quote:
Table 531: A/D Control Register (AD0CR - address 0x4003 4000) bit description
7:0 SEL [COLOR=Red]Selects which of the AD0.7:0 pins is (are) to be sampled and converted.[/COLOR] For AD0, bit 0 selects Pin AD0.0, and bit 7 selects pin AD0.7. In software-controlled mode, only one of these bits should be 1. In hardware scan mode, any value containing 1 to 8 ones is allowed. All zeroes is equivalent to 0x01.