35
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
MITSUBISHI MICROCOMPUTERS
DIG10 G10
DIG9
G11
DIG10 G10
PA7
PA1
PA0
PA3
PA2
PA5
PA4
PA6
P87
P81
P80
P83
P82
P85
P84
P86
SEG23
SEG17
SEG16
SEG19
SEG18
SEG21
SEG20
SEG22
Port PA
(has the segment/port
switch register)
Number of segments
Number of digits
0
24
8
Port P8
(has the segment/port
switch register)
0
Port P9
(segment only)
PA7
PA1
PA0
PA3
PA2
PA5
PA4
PA6
SEG15
P81
P80
P83
P82
SEG13
SEG12
SEG14
SEG23
SEG17
SEG16
SEG19
SEG18
SEG21
SEG20
SEG22
0
30
10
1
0
1
SEG7
SEG1
SEG0
SEG3
SEG2
SEG5
SEG4
SEG6
SEG15
SEG9
SEG8
SEG11
SEG10
SEG13
SEG12
SEG14
SEG23
SEG17
SEG16
SEG19
SEG18
SEG21
SEG20
SEG22
1
36
16
1
SEG39
SEG33
SEG32
SEG35
SEG34
SEG37
SEG36
SEG38
DIG8
G8
Port P3
(segment only)
Number of segments
Number of digits
24
8
Port P0
(has the segment/digit
switch register)
1
Port P1
(has the segment/digit
switch register)
SEG39
SEG33
SEG32
SEG35
SEG34
SEG37
SEG36
SEG38
30
10
1
DIG7
G13
SEG33
SEG32
SEG35
SEG34
DIG5
G15
DIG4
G16
DIG6
G14
36
16
0
1
0
SEG31
SEG25
SEG24
SEG27
SEG26
SEG29
SEG28
SEG30
SEG31
SEG25
SEG24
SEG27
SEG26
SEG29
SEG28
SEG30
SEG31
SEG25
SEG24
SEG27
SEG26
SEG29
SEG28
SEG30
0
DIG9
G7
DIG10 G6
DIG11 G5
DIG12 G4
DIG13 G3
DIG14 G2
DIG15 G1
SEG40
1
SEG41
DIG11 G9
DIG12 G8
DIG13 G7
DIG14 G6
DIG15 G5
DIG8
G12
0
DIG11 G9
DIG12 G8
DIG13 G7
DIG14 G6
DIG15 G5
Port P2
(has the digit/port
switch register)
1
DIG16 G4
DIG17 G3
DIG18 G2
DIG19 G1
1
DIG16 G4
DIG17 G3
DIG18 G2
DIG19 G1
0
P20
P21
P22
P23
q Pins for FLD Automatic Display
Ports P0, P1, P20–P23, P3, P8, P9, and PA is selected for the
FLD automatic display function by setting the automatic display
control bit of the FLDC mode register 2 (address 003716) to
“1”.
When using the FLD automatic display mode, set the number
of segments and digits for each port.
Table 4. Pins in FLD automatic display mode
Port Name
PA0–PA7
P80–P87
P90–P97
P30–P37
P00–P07
P10, P11
P12–P17
P20–P23
Automatic Display Pins
SEG0–SEG7
or
PA0–PA7
SEG8–SEG15
or
P80–P87
SEG16–SEG23
SEG24–SEG31
SEG32–SEG41
or
DIG0–DIG9
DIG10–DIG15
DIG16–DIG19
or
P20–P23
Setting Method
The individual bits of the segment/port switch register (address 003516) can be set each pin
to either segment (“1”) or general-purpose I/O port (“0”).
The individual bits of the segment/port switch register (address 003416) can be used to set
each pin to either segment (“1”) or general-purpose I/O port (“0”).
None (segment only)
The individual bits of the segment/digit switch register (address 003216) and the bit 6, 7 of
the FLDC mode register 2 can be used to set each pin to segment (“1”) or digit (“0”). (Note)
None (digit only)
The individual bits of the digit/port switch register (address 003316) can be used to set each
pin to digit (“1”) or general-purpose output port (“0”). (Note)
Note : Be sure to set digits in sequence.
Fig. 30 Segment/digit setting example