Mitsubishi Electric M32R Series User Manual page 506

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

Advertisement

11
(2) Scan mode
In scan mode, analog input voltages in multiple selected channels (4, 8, or 16 channels) are
sequentially A-D converted.
There are two types of scan modes: "Single-shot scan mode" in which A-D conversion is
completed by performing one cycle of scan operation, and "Continuous scan mode" in which
scan operation is continued until halted by setting the Scan Mode Register A-D conversion stop
bit to 1.
These types of scan modes are selected using Scan Mode Register 0. The channels to be
scanned are selected using Scan Mode Register 1. The number of channels and the sequence to
be scanned can be selected from three combinations available: 4, 8, or 16 channels. Channels
ADiIN0 to ADiIN3 (i = 0, 1) are used for 4-channel scan. Similarly, channels ADiIN0 to ADiIN7 and
channels ADiIN0 to ADiIN15 are used for 8-channel scan and 16-channel scan, respectively.
An A-D conversion interrupt request or a DMA transfer request (for the A-D0 converter only) can
be generated at completion of one cycle of scan operation.
<4-channel scan>
Conversion
starts
(Note 1)
10-bit A-Di data register
Note 1: A-D0 conversion start: Software trigger → Started by setting A-D0 conversion start bit to 1
A-D1 conversion start: Software trigger → Started by setting A-D1 conversion start bit to 1
Note 2: DMA transfer request: Can be generated for only the A-D0 converter.
Figure 11.1.5 Operation of A-D Conversion in Scan Mode (for 4-channel Scan)
During continuous scan mode
ADiIN0
ADiIN1
ADiDT0
ADiDT1
A-D conversion interrupt request or DMA transfer request (Note 2)
i=0,1
Hardware trigger → Started by output event bus 3 or ADTRG signal input
Hardware trigger → Started by TID1 overflow/underflow or ADTRG signal input
11-8
11.1 Outline of A-D Converters
ADiIN2
ADiIN3
ADiDT2
ADiDT3
A-D CONVERTERS
Completed here when
operating in single-shot
scan mode
____________
____________
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents