Repeat Sweep Mode 1 - Renesas M16C/60 Series Hardware Manual

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

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group

(5) Repeat Sweep Mode 1

In this mode, the input voltages on all pins are A-D converted repeatedly, with priority given to the
selected pins. Table 1.16.6 lists the specifications of repeat sweep mode 1. Figure 1.16.8 shows the
ADCON0 and ADCON1 registers in repeat sweep mode 1.
Table 1.16.6 Repeat Sweep Mode 1 Specifications
Item
Function
A-D conversion start condition • When the ADCON0 register's TRG bit 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 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
Note: AN
to AN
, and AN
00
07
Rev.1.00
2003.05.30
page 194
The input voltages on all pins selected by the ADCON2 register's ADGSEL1 to
ADGSEL0 bits are A-D converted repeatedly, with priority given to pins se-
lected by the ADCON1 register's SCAN1 to SCAN0 bits and ADGSEL1 to
ADGSEL0 bits.
Example : If AN
selected, input voltages are A-D converted in order of
0
AN
AN
0
1
The ADCON0 register's ADST bit is set to "1" (A-D conversion starts)
• When the TRG bit is "1" (AD
_________
Input on the AD
pin changes state from high to low after the ADST bit is
TRG
set to "1" (A-D conversion starts)
Select from AN
(1 pin), AN
0
pins) (Note)
to AN
can be used in the same way as AN
20
27
Specification
AN
AN
AN
AN
0
2
0
_________
trigger)
TRG
to AN
(2 pins), AN
to AN
0
1
0
to AN
0
A-D Converter
, and so on.
3
(3 pins), AN
to AN
(4
2
0
3
.
7

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents