94 / 98 page

CybraTech (2000) Ltd.
SOC-3000/i Scale-On-Chip
ASIC
Technical Specification
Revision B
Page 86
July, 2002
Example 2: Configuring a 16-digit LCD Display, an 8x4
Keyboard, 8 Output and 4 I/O Ports
•
16-digit LCD display support implies partial allocation of the LCD driver output pins to
the LCD display, using 4 backplanes and 32 segments. Thus, pins 18-52 should be
assigned to the LCD controller/driver.
•
8x4 keyboard support implies partial allocation of the keyboard I/O pins to the keyboard
controller. Thus, pins 1-5 and 78-84 should be assigned to the keyboard controller.
•
8 output ports will be implemented using the 8 pins of the LCD driver that are not used
for the display. Thus, pins 53-61 should be assigned as Output ports.
•
4 I/O ports will be implemented using the 4 pins of the keyboard input matrix that are
not used by the keyboard. Thus, pins 74-77 should be assigned as I/O ports.
Table 42 lists the CFR registers affected and their required values.
TABLE 42: EXAMPLE 2: 16-DIGIT LCD DISPLAY, 8×4 KEYBOARD, 8 OUTPUT, 4 I/O
FUNCTION
CFR REGISTER ADDRESS
& VALUE
PORT / SEGMENT
AFFECTED
PINS
LCD Display
C102H = E8H
C103H = 00H
C104H = 00H
C105H = 00H
C106H = 00H
C107H = 00H
C108H = 00H
C109H = 00H
C10AH = 00H
C10BH = 00H
S32
S28 – S31
S24 – S27
S20 – S23
S16 – S19
S12 – S15
S8 – S11
S4 – S7
S1 – S3
BP1 – BP4
53
49 – 52
45 – 48
41 – 44
37 – 40
33 – 36
29 – 32
25 – 28
22 – 24
18 – 21
Keyboard Matrix
C10DH = FFH
C10EH = F0H
KIN0 – KIN7
KOUT4 – KOUT7
1 – 5; 82 – 84
78 – 81
Output Ports
C101H = FFH
C102H = E8H
P13.0 – P13.3
P12.1 – P12.4
58 –61
54 – 57
I/O Ports
C10E = F0H
KOUT4 – KOUT7
P14.0 – P14.3
78 – 81
74 – 77