95 / 98 page

CybraTech (2000) Ltd.
SOC-3000/i Scale-On-Chip
ASIC
Technical Specification
Revision B
Page 87
July, 2002
Example 3: Configuring a 21-digit LED Parallel Display, an
8x8 Keyboard and 13 Output Ports
•
21-digit LED parallel display support implies full allocation of the LED parallel display
controller output pins to the LED parallel display. Thus, pins 22-52 should be assigned
to the LED parallel display controller.
•
8x8 keyboard support implies full allocation of the keyboard I/O pins to the keyboard
controller. Thus, pins 1-5 and 74-84 should be assigned to the keyboard controller.
•
13 output ports will be implemented using the available OUTPUT ports available in the
ASIC. Thus, pins 53-61 should be assigned as Output ports.
Table 43 lists the CFR registers affected and their required values.
TABLE 43: EXAMPLE 3: 21-DIGIT LED DISPLAY, 8×8 KEYBOARD, 13 OUTPUT
FUNCTION
CFR REGISTER
ADDRESS & VALUE
PORT / SEGMENT
AFFECTED
PINS
LED Display
C103H = 55H
C104H = 55H
C105H = 55H
C106H = 55H
C107H = 55H
C108H = 55H
C109H = 55H
C10AH = 15H
DIG4 – 7
SEG DP3; DIG1 - 3
SEG D3 – G3
SEG DP2; A3 – C3
SEG D2 – G2
SEG DP1; A2 – C2
SEG D1 – G1
SEG A1 – C1
49 – 52
45 – 48
41 – 44
37 – 40
33 – 36
29 – 32
25 – 28
22 – 24
Keyboard Matrix
C10DH = FFH
C10EH = FFH
KIN0 – KIN7
KOUT0 – KOUT7
1 – 5; 82 – 84
74 – 81
Output Ports
C101H = FFH
C102H = EAH
C10BH = 56H
P13.0 – P13.3
P12.0 – P12.4
P4.0 – P4.3
58 –61
53 – 57
18 – 21