16.5 Notes on use
16.5 Notes on use
To start the A/D converter upon an external trigger or internal timer, A/D activation factor bits STS1 and
STS0 of the ADCS2 register are used. Ensure that the input values of the external trigger or internal
timer are inactive. If the values are active, A/D conversion may start immediately.
When setting STS1 and STS0, ensure that '1' (input) is specified for ADTG and '0' (output) is specified
for the internal timer (timer 2).
16.5.1 Other considerations
Always write '1' to the ADER bit corresponding to a pin used as analog input.
Analog input enable register
Bit
Address: 00001C
H
Read/write
Initial value
Port 5 pins are controlled as described below.
0: Port input mode
1: Analog input mode
'1' is set upon a reset.
234
Chapter 16: A/D Converter
15
14
13
ADE7
ADE6
ADE5
R/W
R/W
R/W
(1)
(1)
(1)
12
11
10
ADE4
ADE3
ADE2
R/W
R/W
R/W
(1)
(1)
(1)
9
8
ADER
ADE1
ADE0
R/W
R/W
(1)
(1)
MB90580 Series