Conversion Modes - Mitsubishi Electric M32R Series User Manual

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

Advertisement

11

11.1.1 Conversion Modes

The A-D converters have two conversion modes: "A-D conversion mode" and "Comparator mode."
(1) A-D conversion mode
In A-D conversion mode, the analog input voltage in a specified channel is converted into digital
quantity.
In single mode, A-D conversion is performed on a channel selected by the Single Mode Register
1 analog input pin select bit. In scan mode, A-D conversion is performed on channels selected by
Scan Mode Register 1 according to settings of Scan Mode Register 0. The conversion result is
stored in each channel's corresponding 10-bit A-D Data Register. Also, 8-bit A-D conversion
results can be read from each 8-bit A-D Data Register.
An A-D conversion interrupt request or a DMA transfer request (for the A-D0 converter only) can
be generated at completion of A-D conversion when in single mode, or when operating in scan
mode, at completion of one cycle of scan loop.
(2) Comparator mode
In comparator mode, the analog input voltage in a specified channel is "comparated" (compared)
with the Successive Approximation Register value, and the result (relative magnitude of two
values) is returned to a flag.
The channel to be comparated is selected using the Single Mode Register 1 analog input pin
select bit. The result of comparate operation is flagged (1 or 0) by setting or resetting the A-D
Comparate Data Register bit that corresponds to the selected channel.
An A-D conversion interrupt request or a DMA transfer request (for the A-D0 converter only) can
be generated at completion of comparate operation.
11.1 Outline of A-D Converters
11-6
A-D CONVERTERS
Ver.0.10

Advertisement

Table of Contents
loading

Table of Contents