CHAPTER 12 A/D CONVERTER
12.1 Overview of the A/D Converter
The A/D converter is a module that converts an analog input voltage to a digital value
in the successive approximation conversion method.
■ Features
The A/D converter, which converts an analog voltage input to an analog input pin (input voltage)
to a digital value, has the following features:
•
Peripheral clock (CLKP): 140 clock cycles
Minimum conversion time: 4.1 µs per channel (for a 34 MHz = CLKP machine clock)
•
•
Built-in sample and hold circuit
•
Resolution: 10 bits
•
A program can select one of four analog input channels:
-
Single-shot conversion mode: Converts one channel.
-
Scan conversion mode:
•
Selectable the following 3 operating modes;
-
Single conversion mode:
-
Continuous conversion mode:Repetitiously converts a specified channel.
-
Stop conversion mode:
•
DMA transfer can be started due to an interrupt.
•
To start conversion, select software, an external trigger (falling edge), or the reload timer
(rising edge).
346
Continuously converts multiple channels. Up to four
channels can be programmed.
Converts a specified channel.
Converts one channel, pauses, and stands by until the next
activation occurs (conversion start can be synchronized).