|
M38203M4 Datasheet, PDF (244/344 Pages) Mitsubishi Electric Semiconductor – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
2.7 LCD drive control circuit
(2) Ports P0, P1 and P3
When pins P30/SEG16âP37/SEG23, P00/SEG24âP07/SEG31, P10/SEG32âP17/SEG39 are not used as
segment outputs, they can be used as input port P3 and as I/O ports P0 and P1.
Table 2.7.4 shows the setting of input port P3 and I/O ports P0, P1.
Table 2.7.4 Setting of input port P3 and I/O ports P0, P1
Ports
Setting
P30âP37
By setting bit 0 of segment output enable register (address 003816) to â0â
P00, P01
By setting bit 1 of segment output enable register (address 003816) to â0â
P02âP07
P10, P11
By setting bit 2 of segment output enable register (address 003816) to â0â
By setting bit 3 of segment output enable register (address 003816) to â0â
P12
P13âP17
By setting bit 4 of segment output enable register (address 003816) to â0â
By setting bit 5 of segment output enable register (address 003816) to â0â
(3) P3, P1 and P0 pull-down pins
When pins P30/SEG16âP37/SEG23, P00/SEG24âP07/SEG31, P10/SEG32âP17/SEG39 are not used as
ports, it is possible to exert pull-down control. Table 2.7.5 shows the setting of pull-down pins.
Table 2.7.5 Setting of pull-down pins
Pins
Setting
P30/SEG16â
P37/SEG23
By setting bit 0 of the segment output enable register (address 003816) to â0,â then
setting bit 3 of PULL register A (address 001616) to â1.â
P00/SEG24â
P07/SEG31
P10/SEG32â
P17/SEG39
By setting bits 1 and 2 of the segment output enable register (address 003816) to â0,â
next setting bit 0 of the port P0 direction register (address 000116) to â0,â then setting
bit 0 of PULL register A (address 001616) to â1.â
By setting bits 3 to 5 of the segment output enable register (address 003816) to â0,â
next setting bit 1 of the port P1 direction register (address 000316) to â0,â then setting
bit 1 of PULL register A (address 001616) to â1.â
2â158
3820 GROUP USERâS MANUAL
|
▷ |