Repeat Sweep Mode 1 - Renesas M16C/62P Hardware Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)

18.1.5 Repeat Sweep Mode 1

In repeat sweep mode 1, analog voltage selectively applied to all pins is repeatedly converted to a digital
code. Table 18.6 shows the specifications of repeat sweep mode 1. Figure 18.8 shows the ADCON0 to
ADCON1 registers in repeat sweep mode 1.
Table 18.6 Repeat Sweep Mode 1 Specifications
Item
Function
A/D Conversion Start Condition
A/D Conversion Stop Condition
Interrupt Request Generation Timing None generated
Analog Input Pins to be Given
Priority when A/D Converted
Reading of result of A/D converter Read one of the AD0 to AD7 registers that corresponds to the selected pin
NOTES:
1. AN0_0 to AN0_7, and AN2_0 to AN2_7 can be used in the same way as AN0 to AN7. However,
if VCC2 < VCC1, do not use AN0_0 to AN0_7 and AN2_0 to AN2_7 as analog input pins.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
The input voltages on all pins selected by the ADGSEL1 to ADGSEL0 bits
in the ADCON2 register are A/D converted repeatedly, with priority given
to pins selected by the SCAN1 to SCAN0 bits in the ADCON1 register and
ADGSEL1 to ADGSEL0 bits.
Example : If AN0 selected, input voltages are A/D converted in order of
AN0
• 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
starts)
• When the TRG bit is "1" (ADTRG trigger)
Input on the ADTRG pin changes state from high to low after the ADST
bit is set to "1" (A/D conversion starts)
Set the ADST bit to "0" (A/D conversion halted)
Select from AN0 (1 pins), AN0 to AN1 (2 pins), AN0 to AN2 (3 pins),
AN0 to AN3 (4 pins)
page 219
f o
3
6
4
Specification
AN1
AN0
AN2
____________
____________
(1)
18. A/D Converter
AN0
AN3, and so on.

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents