A-D CONVERTER
12.2 Block description
12.2.2 A-D register i (i = 0 to 4)
Figure 12.2.4 shows the structure of the A-D register i. When the A-D conversion is completed, the conver-
sion result (contents of the successive approximation register) is stored into this register. When the comparator
function is selected, the value to be compared is stored in this register.
Each A-D register i corresponds to an analog input pin (AN ).
i
❈❈When 8-bit resolution mode is selected
A-D register 0 (Addresses 2116, 2016)
A-D register 1 (Addresses 2316, 2216)
A-D register 2 (Addresses 2516, 2416)
A-D register 3 (Addresses 2716, 2616)
A-D register 4 (Addresses 2916, 2816)
(b15)
b7
(b8)
b0 b7
b0
Bit
Function
At reset R/W
7 to 0 Reads an A-D conversion result.
15 to 8 The value is “0” at reading.
Undefined RO
0
–
❈❈When 10-bit resolution mode is selected
A-D register 0 (Addresses 2116, 2016)
A-D register 1 (Addresses 2316, 2216)
A-D register 2 (Addresses 2516, 2416)
A-D register 3 (Addresses 2716, 2616)
A-D register 4 (Addresses 2916, 2816)
(b8)
b0 b7
(b15)
b7
b0
Bit
Function
At reset R/W
Undefined RO
9 to 0 Reads an A-D conversion result.
15 to 10 The value is “0” at reading.
0
–
❈❈When comparator function is selected
A-D register 0 (Addresses 2116, 2016)
A-D register 1 (Addresses 2316, 2216)
A-D register 2 (Addresses 2516, 2416)
A-D register 3 (Addresses 2716, 2616)
A-D register 4 (Addresses 2916, 2816)
(b8)
b0
(b15)
b7
b7
b0
Bit
Function
At reset R/W
Undefined RO
Any value in the range from “0016” to “FF16” can be set.
7 to 0
The set value is compared with the input voltage. The value is undefined at reading.
The value is “0” at reading.
15 to 8
0
–
Note: When the comparator function is selected, writing to and reading from A-D register i must be performed while the A-D
converter halts.
Fig. 12.2.4 Structure of A-D register i
7906 Group User’s Manual Rev.2.0
12-8