Repeat Sweep Mode 1 - Renesas M16C FAMILY series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY series:
Table of Contents

Advertisement

M
1
6
C
2 /
8
G
o r
u
p
(
M
1
6
C

15.1.5 Repeat Sweep Mode 1

In repeat sweep mode 1, analog voltage is applied to the all selected pins are converted to a digital code,
with mainly used in the selected pins. Table 15.7 shows the repeat sweep mode 1 specifications. Figure
15.14 shows the operation example in repeat sweep mode 1. Figure 15.15 shows the ADCON0 to
ADCON2 registers in repeat sweep mode 1.
Table 15.7 Repeat Sweep Mode 1 Specifications
Item
Function
A/D Conversion Start Condition • When the TRG bit in the ADCON0 register is "0" (software trigger)
A/D Conversion Stop Condition Set the ADST bit to "0" (A/D conversion halted)
Interrupt Request Generation Timing None generated
Analog Input Pins Mainly Select from AN
Used in A/D Conversions AN
Readout of A/D Conversion Result Readout one of the AD0 to AD7 registers that corresponds to the selected pin
NOTES:
1. AN0
to AN0
and AN2
0
7
need to belong to the same group.
•Example when selecting AN
A/D conversion started
AN
0
AN
1
AN
2
AN
3
AN
4
AN
5
AN
6
AN
7
Figure 15.14 Operation Example in Repeat Sweep Mode 1
R
e
. v
2
0 .
0
J
a
. n
3
, 1
2
0
0
7
R
E
J
0
9
B
0
0
4
7
0 -
2
0
0
2 /
, 8
M
1
6
C
2 /
8
) B
The SCAN1 to SCAN0 bits in the ADCON1 register and the ADGSEL1 to
ADGSEL0 bits in the ADCON2 register mainly select pins. Analog voltage
applied to the all selected pins is repeatedly converted to a digital code
Example : When selecting AN
Analog voltage is converted to a digital code in the following order
AN
0
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 AD
pin input changes state from "H" to "L" after setting the ADST bit
TRG
to "1" (A/D conversion started)
0
(1)
(4 pins)
3
to AN2
can be used in the same way as AN
0
7
to A/D sweep pins (SCAN1 to SCAN0="00
0
page 231
f o
3
8
5
Specification
0
AN
AN
AN
1
0
2
(1 pins), AN
to AN
(2 pins), AN
0
1
")
2
15. A/D Converter
AN
AN
, and so on.
0
3
to AN
(3 pins), AN
0
2
to AN
. However, all input pins
0
7
A/D pin input voltage
sampling
A/D pin conversion
to
0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents