M30622ECTFP MITSUBISHI [Mitsubishi Electric Semiconductor], M30622ECTFP Datasheet - Page 155

no-image

M30622ECTFP

Manufacturer Part Number
M30622ECTFP
Description
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet
A-D Converter
(a) Sample and hold
(b) Extended analog input pins
(c) External operation amp connection mode
(d) Caution of using A-D converter
Sample and hold is selected by setting bit 0 of the A-D control register 2 (address 03D4
sample and hold is selected, the rate of conversion of each pin increases. As a result, a 28
achieved with 8-bit resolution and 33
modes. However, in all modes, be sure to specify before starting A-D conversion whether sample and
hold is to be used.
In one-shot mode and repeat mode, the input via the extended analog input pins ANEX0 and ANEX1 can
also be converted from analog to digital.
When bit 6 of the A-D control register 1 (address 03D7
converted from analog to digital. The result of conversion is stored in A-D register 0.
When bit 6 of the A-D control register 1 (address 03D7
converted from analog to digital. The result of conversion is stored in A-D register 1.
Furthermore, the input via 16pins of the extended analog input pins AN
converted from analog to digital. These pins can be used the same as AN
Use the A-D control register 2 (address 03D4
to AN
In the selected pin group, the pins is not used as the analog input pin, can be used as normal I/O ports, or
I/O pins of each peripheral function.
In this mode, multiple external analog inputs via the extended analog input pins, ANEX0 and ANEX1, can
be amplified together by just one operation amp and used as the input for A-D conversion.
When bit 6 of the A-D control register 1 (address 03D7
1) is output from ANEX0. The input from ANEX1 is converted from analog to digital and the result stored
in the corresponding A-D register. The speed of A-D conversion depends on the response of the external
operation amp. Do not connect the ANEX0 and ANEX1 pins directly. Figure 1.20.9 is an example of how
to connect the pins in external operation amp mode.
Note 1: AN
(1) Set the direction register of the following ports to input: the port corresponding to a pin to be used as
(2) In using a key-input interrupt, none of 4 pins (AN
(3) Insert the capacitor between AVcc and AVss, between V
(if the A-D input voltage goes to ‘‘L’’ level, a key-input interrupt occurs).
due to noise. Figure 1.20.10 is an example connection of each pin.
pin (AN
Tentative Specifications REV.A
an analog input pin and external trigger input pin(P9
07
S
, AN
pecifications in this manual are tentative and subject to change.
00
i
) and AVss, to prevent a malfunction or program runaway, and to reduce conversion error,
20
to AN
to AN
07
27
, AN
.
20
to AN
27
can be used the same as AN
AD
with 10-bit resolution. Sample and hold can be selected in all
16
) bit 1 and bit 2 to select the pin group AN
155
4
through AN
16
) is “1” and bit 7 is “1”, input via AN
7
).
16
16
) is “1” and bit 7 is “0”, input via ANEX0 is
) is “0” and bit 7 is “1”, input via ANEX1 is
REF
and AVss, and between the analog input
7)
can be used as an A-D conversion port
0
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
to AN
00
7
to AN
0
.
to AN
07
Mitsubishi microcomputers
7
, AN
.
M16C / 62T Group
20
16
to AN
0
) to “1”. When
0
to AN
to AN
AD
27
cycle is
7
can be
, AN
7
(Note
00

Related parts for M30622ECTFP