A SERVICE OF

logo

889
Chapter 44 A/D Converter
3.Registers of A/D Converter
ADECH (ADC0): Address 01ABh (Access: Word, Half-word, Byte)
(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the attributes.)
3.1 A/D Enable Register (ADER)
While a pin is used as analog input, corresponding bit in ADER register have to be set to 1.
A/D enable register (ADER)
ADERH (ADC0): Address 01A0h (Access: Word, Half-word, Byte)
(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the attributes.)
ADERL (ADC0): Address 01A2h (Access: Word, Half-word, Byte)
(See “Meaning of Bit Attribute Symbols (Page No.10)” for details of the attributes.)
[ADE31-0]: A/D Input Enable
RST clears them to 0.
Be sure to set start channel and end channel to 1.
76543210Bit
- - - ANE4 ANE3 ANE2 ANE1 ANE0
-- -00000
Initial
value
RX, W0 RX, W0 RX, W0 R/W R/W R/W R/W R/W Attribute
15 14 13 12 11 10 9 8 Bit
ADE31 ADE30 ADE29 ADE28 ADE27 ADE26 ADE25 ADE24
00000000
Initial
value
R/W R/W R/W R/W R/W R/W R/W R/W Attribute
76543210Bit
ADE23 ADE22 ADE21 ADE20 ADE19 ADE18 ADE17 ADE16
00000000
Initial
value
R/W R/W R/W R/W R/W R/W R/W R/W Attribute
15 14 13 12 11 10 9 8 Bit
ADE15 ADE14 ADE13 ADE12 ADE11 ADE10 ADE9 ADE8
00000000
Initial
value
R/W R/W R/W R/W R/W R/W R/W R/W Attribute
76543210Bit
ADE7 ADE6 ADE5 ADE4 ADE3 ADE2 ADE1 ADE0
00000000
Initial
value
R/W R/W R/W R/W R/W R/W R/W R/W Attribute
ADE Function
0 General purpose port [Initial value]
1 Analog input