![](http://datasheet.mmic.net.cn/280000/M37736MHB_datasheet_16084045/M37736MHB_41.png)
41
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37736MHBXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
A-D CONVERTER
The A-D converter is an 10-bit successive approximation converter.
Figure 49 shows a block diagram of the A-D converter and Figure 50
shows the configuration of the A-D control register 0 (address 1E
16
)
and A-D control register 1 (address 1F
16
).
The frequency of the A-D converter operating clock
by bit 7 of the A-D control register 0. When bit 7 is “0”,
clock frequency divided by 4. That is,
AD
is the clock frequency divided by 2 and
The
the comparator uses a capacity coupling amplifier.
Bit 3 of A-D control register 1 is used to select whether to use the
conversion result as 10 bits or as 8 bits. The conversion result is
used as 10 bits when bit 3 is “1” and as 8 bits when bit 3 is “0”.
When the conversion result is used as 10 bits, the low-order 8 bits of
the conversion result is stored in the even address of the
corresponding A-D register and the high-order two bits are stored in
bits 0 and 1 of the odd address of the corresponding A-D register.
Bits 2 to 7 of the A-D register odd address return “000000
2
” when
read.
the 10-bit A-D conversion are stored in even address of the
AD
is selected
AD
is the
AD
= f
2
/4. When bit 7 is “1”,
AD
= f
2
/2.
AD
during A-D conversion must be 250 kHz or more because
corresponding A-D register. In this case, the A-D register odd address
returns “00
16
” when read.
The operating mode is selected by bits 3 and 4 of A-D control register
0. The available operating modes are one-shot, repeat, single sweep,
repeat sweep.
Whether to connect the reference voltage input pin (V
REF
) with the
ladder network or not depends on bit 5 of the A-D control register 1.
The V
REF
pin is connected when bit 5 is “0” and is disconnected
when bit 5 is “1” (High impedance state). When A-D conversion is
not performed, current from the V
REF
pin to the ladder network can
be cut off by disconnecting ladder network from the V
REF
pin.
Before starting A-D conversion, wait for 1 μs or more after clearing
bit 5 to “0”.
The bit of the port direction register corresponding to the analog input
pin to be used must be “0” (input mode) because the analog input pin
is also used as port P7.
Note that when using the sub-clock (X
CIN
- X
COUT
) or UART2, the
analog pins shared with those functions cannot be used.
The operation of each mode is described below.
The interrupt vector and the interrupt control register are common to
the A-D conversion interrupt and UART2 transmit/receive interrupt.
It is switched by a selection of UART2 function as shown in Figure
37’s note.
Fig. 49 A-D converter block diagram
Data bus (odd)
Data bus (even)
Selector
AN
0
AN
1
AN
2
AN
3
AN
4
AN
5
/AD
TRG
AN
6
AN
7
Ladder network
V
ref
Successive approximation register
Address
Address
1/2
f
2
1/2
A-D register 0 (21
16
)
A-D register 1 (23
16
)
A-D register 2 (25
16
)
A-D register 3 (27
16
)
A-D register 4 (29
16
)
A-D register 5 (2B
16
)
A-D register 6 (2D
16
)
A-D register 7 (2F
16
)
A-D register 0 (20
16
)
A-D register 1 (22
16
)
A-D register 2 (24
16
)
A-D register 3 (26
16
)
A-D register 4 (28
16
)
A-D register 5 (2A
16
)
A-D register 6 (2C
16
)
A-D register 7 (2E
16
)
Decoder
Comparator
A-D control register 1 (1F
16
)
A-D control register 0 (1E
16
)
V
REF
AV
SS
V
REF
connect selection
AD
selection
AD