English
Language : 

M16C28 Datasheet, PDF (245/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.2 Repeat mode
In repeat mode, analog voltage applied to a selected pin is repeatedly converted to a digital code. Table
15.4 shows the repeat mode specifications. Figure 15.8 shows the operation example in repeat mode.
Figure 15.9 shows the ADCON0 to ADCON2 registers in repeat mode.
Table 15.4 Repeat Mode Specifications
Item
Specification
Function
The CH2 to CH0 bits in the ADCON0 register and the ADGSEL1 to ADGSEL0
bits in the ADCON2 register select pins. Analog voltage applied to a selected
pin is repeatedly converted to a digital code
A/D Conversion Start
• When the TRG bit in the ADCON0 register is “0” (software trigger)
Condition
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 Pin
Select one pin from AN0 to AN7, AN00 to AN07 and AN20 to AN27
Readout of A/D Conversion Result Readout one of the AD0 to AD7 registers that corresponds to the selected pin
•Example when selecting AN2 to an analog input pin (Ch2 to CH0="0102")
A/D conversion started
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
A/D pin input voltage
sampling
A/D pin conversion
Figure 15.8 Operation Example in Repeat Mode
Rev. 2.00 Jan. 31, 2007 page 225 of 385
REJ09B0047-0200