A-D CONVERTER
12.3 A-D conversion method
12.3 A-D conversion method
The A-D converter compares the comparison voltage (Vref), which is internally generated according to the
contents of the successive approximation register, with the analog input voltage (VIN), which is input from
the analog input pin (AN ). By reflecting the comparison result on the successive approximation register, VIN
i
is converted into a digital value. When a trigger is generated, the A-D converter performs the following
processing:
❈ Determining bit 9 of the successive approximation register
The A-D converter compares Vref with VIN. At this time, the contents of the successive approximation
register is “1000000000 ” (initial value).
2
Bit 9 of the successive approximation register depends on the comparison result as follows:
When Vref < VIN, bit 9 = “1”
When Vref > VIN, bit 9 = “0”
❈ Determining bit 8 of the successive approximation register
After setting bit 8 of the successive approximation register to “1,” the A-D converter compares Vref with
V
IN. Bit 8 depends on the comparison result as follows:
When Vref < VIN, bit 8 = “1”
When Vref > VIN, bit 8 = “0”
❈ Determining bits 7 to LSB of the successive approximation register
Operation ❈ is performed for each of bits 7 to 0 in the 10-bit resolution mode.
Operation ❈ is performed for each of bits 7 to 2 in the 8-bit resolution mode.
When the LSB is determined, the contents of the successive approximation register (in order words,
conversion result) are transferred to the A-D register i.
V
ref is generated according to the latest contents of the successive approximation register. Table 12.3.1 lists
the relationship between the successive approximation register’s contents and Vref. Tables 12.3.2 and 12.3.3
list the changes of the successive approximation register and Vref during the A-D conversion, respectively.
Figure 12.3.1 shows the ideal A-D conversion characteristics in the 10-bit resolution mode.
Table 12.3.1 Relationship between successive approximation register’s contents and Vref
Successive approximation register’s contents: n
V
ref (V)
0
0
V
REF
× (n – 0.5)
1 to 1023
1024
V
REF: Reference voltage
7906 Group User’s Manual Rev.2.0
12-12