Download USER`S MANUAL

Transcript
I/O PORTS
KS57C3316/P3316
PIN ADDRESSING FOR OUTPUT PORT 7-13
The buffer addresses for the port 7-13 pins are located in both bank1 and bank15. To output the port 7-13 in bank15,
use the setting SMB = 15. Otherwise, to output SEG0-27 in bank1, use the setting EMB = 1 and SMB = 1. The
LCD port control register, LPOT, is used to control whether the pin outputs are the SEG0-27 or the port 7-13 data.
Table 10-6. LPOT Setting for Port 7-13 Output Control
LPOT.2
LPOT.1
LPOT.0
Effect of LPOT Settings
0
0
0
Select to use P7-P13 pins as SEG0-SEG27
0
0
1
Select to use P8-P13 pins as SEG4-SEG27 and P7 pin as normal
output port
0
1
0
Select to use P9-P13 pins as SEG8-SEG27 and P7-P8 pins as normal
output port
0
1
1
Select to use P10-P13 pins as SEG12-SEG27 and P7-P9 pins as
normal output port
1
0
0
Select to use P11-P13 pins as SEG16-SEG27 and P7-P10 pins as
normal output port
1
0
1
Select to use P12-P13 pins as SEG20-SEG27 and P7-P11 pins as
normal output port
1
1
0
Select to use P13 pin as SEG24-SEG27 and P7-P12 pins as normal
output port
1
1
1
Select to use P7-P13 pins as normal output port
Locations that are unused for LCD or port I/O can be used as normal data memory. After a system reset, the values
connected in the port 7-13 data are left undetermined.
10-6