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

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group

15.1.4 Repeat Sweep Mode 0

In repeat sweep mode 0, analog voltage is applied to the selected pins are repeatedly converted to a
digital code. Table 15.1.4.1 shows the repeat sweep mode 0 specifications. Figure 15.1.4.1 shows the
operation example in repeat sweep mode 0. Figure 15.1.4.2 shows the ADCON0 to ADCON2 registers in
repeat sweep mode 0.
Table 15.1.4.1 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
Note 1. AN
to AN
00
07
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.1.4.1 Operation Example in Repeat Sweep Mode 0
Rev.1.00 Nov 01,2004
REJ09B0101-0100Z
The SCAN1 to SCAN0 bits in the ADCON1 register and the ADGSEL1 to
ADGSEL0 bits 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
pin input changes state from "H" to "L" after setting the ADST bit
TRG
to "1" (A/D conversion started)
Select from AN
0
AN
to AN
(8 pins) (Note 1)
0
7
Readout one of the AD0 to AD7 registers that corresponds to the selected pin
, AN
to AN
, and AN
20
27
to AN
to A/D sweep pins (SCAN1 to SCAN0="01
0
3
page 226 of 402
Specification
to AN
(2 pins), AN
to AN
1
0
to AN
can be used in the same way as AN
30
32
15. A/D Converter
(4 pins), AN
to AN
(6 pins),
3
0
5
to AN
0
")
2
A/D pin input voltage
sampling
A/D pin conversion
.
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents