M37220M3-010SP MITSUBISHI [Mitsubishi Electric Semiconductor], M37220M3-010SP Datasheet - Page 24

no-image

M37220M3-010SP

Manufacturer Part Number
M37220M3-010SP
Description
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER with ON-SCREEN DISPLAY CONTROLLER?
Manufacturer
MITSUBISHI [Mitsubishi Electric Semiconductor]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M37220M3-010SP
Manufacturer:
MITSUBISH
Quantity:
20 000
24
A-D COMPARATOR
A-D comparator consists of 6-bit D-A converter and comparator. A-D
comparator block diagram is shown in Figure 19.
The reference voltage “V
the A-D control register 2 (address 00EF
The comparison result of the analog input voltage and the reference
voltage “V
00EE
For A-D comparison, set “0” to corresponding bits of the direction
register to use ports as analog input pins. Write the data for select of
analog input pins to bits 0 to 2 of the A-D control register 1 and write
the digital value corresponding to V
to 5 of the A-D control register 2. The voltage comparison starts by
writing to the A-D control register 2, and it is completed after 16 ma-
chine cycles (NOP instruction
Fig. 17. Structure of A-D control register 1
Fig. 19. A-D comparator block diagram
7
P1
P0
16
P3
P3
6
).
5
0
1
/A-D1/INT3
/INT2/A-D4
/A-D5/DA1
/A-D6/DA2
P1
P1
ref
6
7
” is stored in bit 4 of the A-D control register 1 (address
/A-D2
/A-D3
A-D control register 1
Bits 0 to 2
Analog
switch
signal
ref
” for D-A conversion is set by bits 0 to 5 of
0
Analog input pin selection bits
Storage bit of comparison result
8).
A-D control register 1
(AD1: address 00EE
0 : Input voltage < reference voltage
1 : Input voltage > reference voltage
b2 b1 b0
0
0
0
0
1
1
1
1
ref
0
0
1
1
0
0
1
1
Comparator control
to be compared to the bits 0
0 : A-D1
1 : A-D2
0 : A-D3
1 : A-D4
0 : A-D5
1 : A-D6
0 :
1 :
16
).
Compa-
rator
Do not set.
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER for VOLTAGE SYNTHESIZER
16
)
Data bus
Bit 4
A-D control
register 1
Bit 5
Fig.18. Structure of A-D control register 2
Table 3. Relation between contents of A-D control register 2 and
Bit 5
0
0
0
1
1
1
7
reference voltage “V
Bit 4
Bit 4
0
0
0
1
1
1
A-D control register 2
with ON-SCREEN DISPLAY CONTROLLER
Bit 3
0
0
0
1
1
1
Bit 3
Resistor ladder
Switch tree
MITSUBISHI MICROCOMPUTERS
A-D control
register 2
Bit 2
0
0
0
1
1
1
M37220M3-XXXSP
Bit 2
ref
Bit 1
0
0
1
0
1
1
0
D-A converter set bits
Bit 1
A-D control register 2
(AD2: address 00EF
Bit 0
Refer to Table 3.
0
1
0
1
0
1
123/128 V
125/128 V
127/128 V
Bit 0
voltage “V
Reference
1/128 V
3/128 V
5/128 V
CC
CC
CC
CC
CC
CC
ref
16
)

Related parts for M37220M3-010SP