Repeat Sweep Mode 1 - Renesas M16C/64C User Manual

Table of Contents

Advertisement

M16C/64C Group
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.16 lists the Repeat Sweep Mode 1
Specifications.
Table 27.16
Repeat Sweep Mode 1 Specifications
Item
Function
A/D conversion start
conditions
A/D conversion stop
condition
Interrupt request generation
timing
Analog input pins to be given
priority when A/D converted
Reading of A/D conversion
result
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
The input voltage of all eight pins selected by setting 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
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),
the input level at the ADTRG pin changes from high to low after the
ADST bit is set to 1 (A/D conversion start).
Set the ADST bit to 0 (A/D conversion stop).
No interrupt requests generated
Select one of the following groupings from AN0 to AN3:
1 pin: AN0
2 pins: AN0 and AN1
3 pins: AN0 to AN2
4 pins: AN0 to AN3
AN0_0 to AN0_3 and AN2_0 to AN2_3 can be selected in the same way.
Read the registers among AD0 to AD7 that correspond to the selected
pins.
Specification
•••
27. A/D Converter
Page 640 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents