English
Language : 

M38203M4 Datasheet, PDF (243/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER
APPLICATION
2.7 LCD drive control circuit
Table 2.7.2 Pin functions by setting the corresponding registers when they are not used as seg-
ment output pins
Ports
Setting
Register
Value
Pin function
P30–P37
PULLA (Address 001616) b3
(Bit 3 of PULL register A)
1
Pull-down pin
0
No pull-down
P0D (Address 000116) b0
(Bit 0 of port P0 direction register)
1
Output port
0
Input port
P00–P07
PULLA (Address 001616) b0
(Bit 0 of PULL register A)
Pull-down pin
1
(When being set for the input mode)
0
No pull-down
(When being set for the input mode)
P10–P17
P1D (Address 000316) b0
(Bit 0 of port P1 direction register)
PULLA (Address 001616) b1
(Bit 1 of PULL register A)
1
Output port
0
Input port
Pull-down pin
1
(When being set for the input mode)
0
No pull-down
(When being set for the input mode)
(1) Segment output pins (SEG0–SEG39)
Up to 40 segment outputs can be selected. Table 2.7.3 shows setting of segment output pins for LCD
display.
Table 2.7.3 Setting of segment output pins for LCD display
Pins
Setting
SEG0–SEG15
Segment output-only pin
P30/SEG16–
P37/SEG23
Ports P30–P37 are used as segment signal output pins (SEG16–SEG23) by setting
bit 0 of the segment output enable register (address 003816) to “1.”
P00/SEG24,
P01/SEG25
P02/SEG26–
P07/SEG31
P10/SEG32,
P11/SEG33
P12/SEG34
Ports P00 and P01 are used as segment signal output pins (SEG24, SEG25) by setting
bit 1 of the segment output enable register (address 003816) to “1.”
Ports P02–P07 are used as segment signal output pins (SEG26–SEG31) by setting
bit 2 of the segment output enable register (address 003816) to “1.”
Ports P10 and P11 are used as segment signal output pins (SEG32, SEG33) by setting
bit 3 of the segment output enable register (address 003816) to “1.”
Port P12 is used as segment signal output pins (SEG34) by setting bit 4 of the segment
output enable register (address 003816) to “1.”
P13/SEG35–
P17/SEG39
Ports P13–P17 are used as segment signal output pins (SEG35–SEG39) by setting
bit 5 of the segment output enable register (address 003816) to “1.”
3820 GROUP USER’S MANUAL
2–157