English
Language : 

M16C65 Datasheet, PDF (711/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.5 Repeat Sweep Mode 1
In repeat sweep mode 1, the analog voltage applied to eight selected pins including some prioritized
pins is repeatedly converted to a digital code. Table 27.12 lists the Repeat Sweep Mode 1
Specifications.
Table 27.12 Repeat Sweep Mode 1 Specifications
Item
Specification
Function
The input voltage of all eight pins selected by bits ADGSEL1 to ADGSEL0
in the ADCON2 register is repeatedly converted to a digital code. One to
four pins selected by SCAN1 to SCAN0 in the ADCON1 register is/are
converted by priority.
Example: If AN0 is prioritized, input voltage is converted to a digital code
in the following order:
AN0→AN1→AN0→AN2→AN0→AN3 •••
A/D conversion start
• When the TRG bit in the ADCON0 register is 0 (software trigger),
conditions
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).
A/D conversion stop
Set the ADST bit to 0 (A/D conversion stop).
condition
Interrupt request
No interrupt requests generated
generation timing
Analog input pins to be given Select from AN0 (1 pin), AN0 and AN1 (2 pins), AN0 to AN2 (3 pins), and
priority when A/D converted AN0 to AN3 (4 pins).
AN0_0 to AN0_3 and AN2_0 to AN2_3 can be selected in the same way.
Reading of A/D conversion Read the registers among AD0 to AD7 that corresponds to the selected
result
pins.
27.4.5.1 A/D Control Register 0 (ADCON0) (In Repeat Sweep Mode 1)
A/D Control Register 0
b7 b6 b5 b4 b3 b2 b1 b0
11
Symbol
ADCON0
Address
03D6h
After Reset
0000 0XXXb
Bit Symbol
Bit Name
Function
RW
CH0
RW
CH1 Analog input pin select bit Invalid in repeat sweep mode 1
RW
CH2
RW
MD0
b4 b3
A/D operation mode select 1 1 : Repeat sweep mode 0 or
RW
bit 0
repeat sweep mode 1
MD1
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 676 of 791