|
M38197MA Datasheet, PDF (34/60 Pages) Mitsubishi Electric Semiconductor – SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER | |||
|
◁ |
MITSUBISHI MICROCOMPUTERS
3819 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
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 L-1. Pins in FLD automatic display mode
Port Name Automatic Display Pins
PA0âPA7
SEG0âSEG7
or
PA0âPA7
SEG8âSEG15
P80âP87
or
P80âP87
P90âP97
P30âP37
SEG16âSEG23
SEG24âSEG31
P00âP07
P10, P11
P12âP17
SEG32âSEG41
or
DIG0âDIG9
DIG10âDIG15
P20âP23
DIG16âDIG19
or
P20âP23
Note : Be sure to set digits in sequence.
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)
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)
Number of segments
Number of digits
24
8
Port PA
(has the segment/port
switch register)
0
0
PA0
PA1
0 PA2
0 PA3
0 PA4
0 PA5
0 PA6
0 PA7
Port P8
(has the segment/port
switch register)
0
0
P80
P81
0 P82
0 P83
0 P84
0 P85
0 P86
0 P87
Port P9
(segment only)
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
30
10
0 PA0
0 PA1
0 PA2
0 PA3
0 PA4
0 PA5
0 PA6
0 PA7
0 P80
0 P81
0 P82
0 P83
1 SEG12
1 SEG13
1 SEG14
1 SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
36
16
1 SEG0
1 SEG1
1 SEG2
1 SEG3
1 SEG4
1 SEG5
1 SEG6
1 SEG7
1 SEG8
1 SEG9
1 SEG10
1 SEG11
1 SEG12
1 SEG13
1 SEG14
1 SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
Fig. KA-4 Segment/digit setting example
Number of segments
Number of digits
Port P3
(segment only)
24
8
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
30
10
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
36
16
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
Port P0
(has the segment/digit
switch register)
1 SEG32
1 SEG33
1 SEG34
1 SEG35
1 SEG36
1 SEG37
1 SEG38
1 SEG39
1 SEG32
1 SEG33
1 SEG34
1 SEG35
1 SEG36
1 SEG37
1 SEG38
1 SEG39
1 SEG32
1 SEG33
1 SEG34
1 SEG35
0 DIG4 G16
0 DIG5 G15
0 DIG6 G14
0 DIG7 G13
Port P1
(has the segment/digit
switch register)
0 DIG8
0 DIG9
G8
G7
DIG10 G6
DIG11 G5
DIG12 G4
DIG13 G3
DIG14 G2
DIG15 G1
Port P2
(has the digit/port
switch register)
0 P20
0 P21
0 P22
0 P23
1 SEG40
1 SEG41
DIG10 G10
DIG11 G9
DIG12 G8
DIG13 G7
DIG14 G6
DIG15 G5
0 DIG8 G12
0 DIG9 G11
DIG10 G10
DIG11 G9
DIG12 G8
DIG13 G7
DIG14 G6
DIG15 G5
1 DIG16 G4
1 DIG17 G3
1 DIG18 G2
1 DIG19 G1
1 DIG16 G4
1 DIG17 G3
1 DIG18 G2
1 DIG19 G1
34
|
▷ |