Scan Mode (Scan = 1) - Renesas H8/3067 Series User Manual

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for H8/3067 Series:
Table of Contents

Advertisement

Section 15 A/D Converter
15.4.2

Scan Mode (SCAN = 1)

Scan mode is useful for monitoring analog inputs in a group of one or more channels. When the
ADST bit is set to 1 by software or external trigger input, A/D conversion starts on the first
channel in the group (AN
selected, after conversion of the first channel ends, conversion of the second channel (AN
starts immediately. A/D conversion continues cyclically on the selected channels until the ADST
bit is cleared to 0. The conversion results are transferred for storage into the A/D data registers
corresponding to the channels.
When the mode or analog input channel selection must be changed during analog conversion, to
prevent incorrect operation, first clear the ADST bit to 0 in ADCSR to halt A/D conversion. After
making the necessary changes, set the ADST bit to 1. A/D conversion will start again from the
first channel in the group. The ADST bit can be set at the same time as the mode or channel
selection is changed.
Typical operations when three channels in group 0 (AN
described next. Figure 15.4 shows a timing diagram for this example.
1. Scan mode is selected (SCAN = 1), scan group 0 is selected (CH2 = 0), analog input channels
AN
to AN
are selected (CH1 = 1, CH0 = 0), and A/D conversion is started (ADST = 1).
0
2
2. When A/D conversion of the first channel (AN
ADDRA. Next, conversion of the second channel (AN
3. Conversion proceeds in the same way through the third channel (AN
4. When conversion of all selected channels (AN
and conversion of the first channel (AN
interrupt is requested at this time.
5. Steps 2 to 4 are repeated as long as the ADST bit remains set to 1. When the ADST bit is
cleared to 0, A/D conversion stops. After that, if the ADST bit is set to 1, A/D conversion
starts again from the first channel (AN
Rev. 4.00 Jan 26, 2006 page 582 of 938
REJ09B0276-0400
when CH2 = 0, AN
0
4
) starts again. If the ADIE bit is set to 1, an ADI
0
).
0
when CH2 = 1). When two or more channels are
to AN
) are selected in scan mode are
0
2
) is completed, the result is transferred into
0
) starts automatically.
1
to AN
) is completed, the ADF flag is set to 1
0
2
or AN
1
).
2
)
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8/3067H8/3066H8/3065H8/3067rf

Table of Contents