English
Language : 

M16C26A Datasheet, PDF (203/352 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/26A Group (M16C/26A, M16C/26B, M16C/26T)
14. A/D Converter
14.1 Operation Modes
14.1.1 One-Shot Mode
In one-shot mode, analog voltage applied to a selected pin is once converted to a digital code. Table
14.1.1.1 shows the one-shot mode specifications. Figure 14.1.1.1 shows the operation example in one-
shot mode. Figure 14.1.1.2 shows the ADCON0 to ADCON2 registers in one-shot mode.
Table 14.1.1.1 One-shot 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 once 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
• A/D conversion completed (If a software trigger is selected, the ADST bit is
Condition
set to “0” (A/D conversion halted)).
• Set the ADST bit to “0”
Interrupt Request Generation Timing A/D conversion completed
Analog Input Pin
Select one pin from AN0 to AN7, AN30 to AN32, AN24
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 interrupt request generated
A/D pin input voltage
sampling
A/D pin conversion
Figure 14.1.1.1 Operation Example in One-Shot Mode
Rev. 2.00 Feb.15, 2007 page 186 of 329
REJ09B0202-0200