|
7702 Datasheet, PDF (228/522 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
A-D CONVERTER
8.3 A-D conversion method
8.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 (ANi). By reflecting the comparison result on the successive approximation register, VIN
is converted into a digital value. When a trigger is generated, the A-D converter performs the following
processing:
 Determining bit 7 of the successive approximation register
The A-D converter compares Vref with VIN. At this time, the contents of the successive approximation
register is â100000002â (initial value).
Bit 7 of the successive approximation register changes according to the comparison result as follows:
When Vref < VIN, bit 7 = â1â
When Vref > VIN, bit 7 = â0â
 Determining bit 6 of the successive approximation register
After setting bit 6 of the successive approximation register to â1,â the A-D converter compares Vref
with VIN. Bit 6 changes according to the comparison result as follows:
When Vref < VIN, bit 6 = â1â
When Vref > VIN, bit 6 = â0â
 Determining bits 5 to 0 of the successive approximation register
Operations in  are performed for bits 5 to 0.
When bit 0 is determined, the contents (conversion result) of the successive approximation register
is transferred to the A-D register i.
The comparison voltage (Vref) is generated according to the latest contents of the successive approximation
register. Table 8.3.1 lists the relationship between the successive approximation registerâs contents and Vref.
Table 8.3.2 lists changes of the successive approximation register and Vref during the A-D conversion. Figure
8.3.1 shows the ideal A-D conversion characteristics.
Table 8.3.1 Relationship between successive approximation registerâs contents and Vref
Successive approximation registerâs contents: n
Vref (V)
0
0
1 to 255
VV
REF
256
! (n â 0.5)
VREFV: Reference voltage
8â10
7702/7703 Group Userâs Manual
|
▷ |