Repeat Sweep Mode 0 - Renesas M16C/29 Series User Manual

Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M
1
6
C
2 /
9
G
o r
u
p

15.1.4 Repeat Sweep Mode 0

In repeat sweep mode 0, analog voltages applied to the selected pins are repeatedly converted to a
digital code. Table 15.6 shows the repeat sweep mode 0 specifications. Figure 15.12 shows the opera-
tion example in repeat sweep mode 0. Figure 15.13 shows the ADCON0 to ADCON2 registers in repeat
sweep mode 0.
Table 15.6 Repeat Sweep Mode 0 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 Pin
Readout of A/D Conversion Result
NOTES:
1. AN0
to AN0
0
However, all input pins 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.12 Operation Example in Repeat Sweep Mode 0
R
e
. v
1
1 .
2
M
r a
3 .
, 0
2
0
0
7
R
E
J
0
9
B
0
1
0
1
0 -
1
1
2
Bits SCAN1 and SCAN0 in the ADCON1 register and bits ADGSEL1 and
ADGSEL0 in the ADCON2 register select pins. Analog voltage applied to the
selected pins is repeatedly converted to a digital code
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
TRG
to 1 (A/D conversion started)
Select from AN
AN
to AN
(8 pins)
0
7
Readout one of registers AD0 to AD7 that corresponds to the selected pin
, AN 2
to AN2
, and AN3
7
0
7
to AN
to A/D sweep pins (SCAN1 to SCAN0 = 01
0
3
page 234
f o
4
5
8
Specification
pin input changes state from "H" to "L" after setting the ADST bit
to AN
(2 pins), AN
0
1
(1)
to AN3
can be used in the same way as AN
0
2
to AN
(4 pins), AN
0
3
0
)
2
15. A/D Converter
to AN
(6 pins),
5
to AN
.
0
7
A/D pin input voltage
sampling
A/D pin conversion

Advertisement

Table of Contents
loading

Table of Contents