English
Language : 

M16C28 Datasheet, PDF (251/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
15. A/D Converter
15.1.5 Repeat Sweep Mode 1
In repeat sweep mode 1, analog voltage is applied to the all selected pins are converted to a digital code,
with mainly used in the selected pins. Table 15.7 shows the repeat sweep mode 1 specifications. Figure
15.14 shows the operation example in repeat sweep mode 1. Figure 15.15 shows the ADCON0 to
ADCON2 registers in repeat sweep mode 1.
Table 15.7 Repeat Sweep Mode 1 Specifications
Item
Specification
Function
The SCAN1 to SCAN0 bits in the ADCON1 register and the ADGSEL1 to
ADGSEL0 bits in the ADCON2 register mainly select pins. Analog voltage
applied to the all selected pins is repeatedly converted to a digital code
Example : When selecting AN0
Analog voltage is converted to a digital code in the following order
AN0 AN1 AN0 AN2 AN0 AN3, and so on.
A/D Conversion Start Condition • When the TRG bit in the ADCON0 register is “0” (software trigger)
Set the ADST bit in the ADCON0 register to “1” (A/D conversion started)
• When the TRG bit in the ADCON0 register is “1” (hardware trigger)
The ADTRG pin input changes state from “H” to “L” after setting the ADST bit
to “1” (A/D conversion started)
A/D Conversion Stop Condition Set the ADST bit to “0” (A/D conversion halted)
Interrupt Request Generation Timing None generated
Analog Input Pins Mainly Select from AN0 (1 pins), AN0 to AN1 (2 pins), AN0 to AN2 (3 pins), AN0 to
Used in A/D Conversions AN3 (4 pins) (1)
Readout of A/D Conversion Result Readout one of the AD0 to AD7 registers that corresponds to the selected pin
NOTES:
1. AN00 to AN07 and AN20 to AN27 can be used in the same way as AN0 to AN7. However, all input pins
need to belong to the same group.
•Example when selecting AN0 to A/D sweep pins (SCAN1 to SCAN0="002")
A/D conversion started
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
Figure 15.14 Operation Example in Repeat Sweep Mode 1
A/D pin input voltage
sampling
A/D pin conversion
Rev. 2.00 Jan. 31, 2007 page 231 of 385
REJ09B0047-0200