Renesas M32R/ECU Series User Manual page 452

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

11
Figure 11.1.4 Operation in Single Mode (Comparate)
(2) Scan Mode
In scan mode, the analog input voltages on two or more selected channels from channel 0 (ADiIN0, i = 0 or 1)
to the channel (channels 0–15) selected by the A-D Scan Mode Register 1 scan loop select bit are sequen-
tially A-D converted.
There are two types of scan mode: "Single-shot scan mode" in which A-D conversion is completed after
performing one cycle of scan operation, and "Continuous scan mode" in which scan operation is continued
until halted by setting the A-D scan mode register 0's A-D conversion stop bit to "1".
These types of scan mode are selected using A-D Scan Mode Register 0. The channels to be scanned are
selected using A-D Scan Mode Register 1. The selected channels are scanned sequentially beginning with
channel 0.
An A-D conversion interrupt or DMA transfer request can be generated when one cycle of scan operation is
completed.
<n-channel scan>
Conversion
starts
(Note 1)
10-bit A-Di Data Register
Note 1: A-D0 conversion start: Software trigger → Started by setting the A-D0 conversion start bit to "1"
A-D1 conversion start: Software trigger → Started by setting the A-D1 conversion start bit to "1"
Figure 11.1.5 Operation of A-D Conversion in Scan Mode
A-D Successive Approximation Register
ADiSAR
Conversion
ADiINn
Completed
starts
(Note 1)
ADiCMP
A-Di Comparate
Data Register
Note 1: Comparate operation is started by writing a comparison value to the Successive
Approximation Register (ADiSAR)
During continuous scan mode
ADiIN0
ADiIN1
ADiDT0
ADiDT1
A-D conversion interrupt or DMA transfer request
Hardware trigger → Started by input event bus 3, input event bus 2,
Hardware trigger → Started by input event bus 3, input event bus 2,
11.1 Outline of A-D Converters
A-D conversion interrupt
or DMA transfer request
i=0,1
n=0–15
Comparate result
ADiCMP=0 (ANn > ADiSAR)
ADiCMP=1 (ANn < ADiSAR)
ADiINn-1
ADiINn
ADiDTn-1
ADiDTn
output event bus 3 or TIN23S signal input
TID1_udf/ovf or TIN23S signal input
11-7
A-D Converters
i=0, 1
n=0–15
Completed here when operating
in single-shot scan mode
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents