English
Language : 

M16C65 Datasheet, PDF (707/829 Pages) Renesas Technology Corp – RENESAS MCU M16C FAMILY / M16C/60
Under development
M16C/65 Group
Preliminary Specification
This is a preliminary specification and is subject to change.
27. A/D Converter
27.4.3 Single Sweep Mode
In single sweep mode, the analog voltage applied to selected pins is converted one-by-one to a digital
code. Table 27.10 shows the Single Sweep Mode Specifications.
Table 27.10 Single Sweep Mode Specifications
Item
Function
A/D conversion start
conditions
A/D conversion stop
conditions
Interrupt request
generation timing
Analog input pin
Reading of A/D conversion
result
Specification
Bits SCAN1 to SCAN0 in the ADCON1 register and bits ADGSEL1 to
ADGSEL0 in the ADCON2 register are used to select pins. The analog
voltage applied to the pins is converted one-by-one to a digital code.
• When the TRG bit in the ADCON0 register is 0 (software trigger)
the ADST bit in the ADCON0 register is set to 1 (A/D conversion start).
• When the TRG bit is 1 (ADTRG trigger)
input level at the ADTRG pin changes from high to low after the ADST bit
is set to 1 (A/D conversion start).
• Completion of A/D conversion (if a software trigger is selected, the ADST
bit is set to 0 (A/D conversion stop)).
• Set the ADST bit to 0.
Completion of A/D conversion
Select from AN0 and AN1 (2 pins), AN0 to AN3 (4 pins), AN0 to AN5 (6
pins), and AN0 to AN7 (8 pins).
AN0_0 to AN0_7 and AN2_0 to AN2_7 can be selected in the same way.
Read the registers among AD0 to AD7 that corresponds to the selected pin.
27.4.3.1 A/D Control Register 0 (ADCON0) (In Single Sweep Mode)
A/D Control Register 0
b7 b6 b5 b4 b3 b2 b1 b0
10
Symbol
ADCON0
Address
03D6h
After Reset
0000 0XXXb
Bit Symbol
Bit Name
Function
RW
CH0
RW
CH1 Analog input pin select bit Invalid in single sweep mode
RW
CH2
RW
MD0
RW
A/D operation mode select b4 b3
bit 0
MD1
1 0 : Single sweep mode
RW
TRG Trigger select bit
0 : Software trigger
1 : ADTRG trigger
RW
ADST
A/D conversion start flag
0 : A/D conversion stop
1 : A/D conversion start
RW
CKS0 Frequency select bit 0
Refer to the CKS0 bit in the ADCON0
register
RW
If the ADCON0 register is rewritten during A/D conversion, the conversion result is undefined.
REJ09B0484-0030 Rev.0.30 Sep 09, 2008
Page 672 of 791