![](http://datasheet.mmic.net.cn/110000/M32186F8VFP_datasheet_3496152/M32186F8VFP_504.png)
11
A/D CONVERTER
11-6
32185/32186 Group Hardware Manual
Rev.1.10 REJ09B0235-0110 May 15, 07
Figure 11.1.2 Operation in Single Mode (A/D Conversion)
A/D conversion interrupt or DMA transfer request
Note 1: A/D0 conversion start: Software trigger
→ Started by setting the A/D0 conversion start bit to "1"
Hardware trigger
→ Started by input event bus 3, input event bus 2,
output event bus 3 or TIN23S signal input
ADiINn
Completed
ADiDTn
10-bit A/Di Data Register
Conversion starts
(Note 1)
i=0
n=0–15
11.1.1 Conversion Modes
The A/D Converter has two conversion modes: “A/D Conversion mode” and “Comparator mode.”
(1) A/D Conversion Mode
In A/D conversion mode, the analog input voltage on a specified channel is A/D converted.
In single mode, A/D conversion is performed on a channel selected by the A/D Single Mode Register
1 analog input pin select bit.
In scan mode, A/D conversion is performed on channels selected by A/D Scan Mode Register 1
according to settings of A/D Scan Mode Register 0.
The conversion result is stored in each channel’s corresponding 10-bit A/D Data Register. There is also
an 8-bit A/D Data Register for each channel, from which 8-bit A/D conversion results can be read out.
An A/D conversion interrupt or DMA transfer request can be generated when A/D conversion in single
mode is completed, as well as when one cycle of scan loop in scan mode is completed.
(2) Comparator Mode
In comparator mode, the analog input voltage on 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 A/D Single Mode Register 1 analog input pin
select bit. The result of comparate operation is flagged ("0" or "1") by setting the A/D Comparate Data
Register bit that corresponds to the selected channel.
An A/D conversion interrupt or DMA transfer request can be generated when comparate operation is
completed.
11.1.2 Operation Modes
There are two operation modes for the A/D Converter: “Single mode” and “Scan mode.” When comparator
mode is selected as A/D conversion mode, only single mode can be used.
(1) Single Mode
In single mode, the analog input voltage on one selected channel is A/D converted or comparated
once. An A/D conversion interrupt or DMA transfer request can be generated when A/D conversion or
comparate operation is completed.
11.1 Outline of A/D Converter