Repeat Mode - 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.2 Repeat mode

In repeat mode, analog voltage applied to a selected pin is repeatedly converted to a digital code. Table
15.4 shows the repeat mode specifications. Figure 15.8 shows the operation example in repeat mode.
Figure 15.9 shows the ADCON0 to ADCON2 registers in repeat mode.
Table 15.4 Repeat Mode Specifications
Item
Function
A/D Conversion Start
Condition
A/D Conversion Stop Condition Set the ADST bit to "0" (A/D conversion halted)
Interrupt Request Generation Timing None generated
Analog Input Pin
Readout of A/D Conversion Result
•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.8 Operation Example in Repeat Mode
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 CH2 to CH0 bits in the ADCON0 register and the ADGSEL1 to ADGSEL0
bits in the ADCON2 register select pins. Analog voltage applied to a selected
pin is repeatedly converted to a digital code
• When the TRG bit in the ADCON0 register is "0" (software trigger)
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)
Select one pin from AN
Readout one of the AD0 to AD7 registers that corresponds to the selected pin
to an analog input pin (Ch2 to CH0="010
2
page 225
f o
3
8
5
Specification
to AN
, AN0
to AN0
0
7
0
7
15. A/D Converter
and AN2
to AN2
0
7
")
2
A/D pin input voltage
sampling
A/D pin conversion

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tiny seriesM16c series

Table of Contents