SC16315
The data of each key is stored as illustrated below, and is read with the read command, starting from the least
significant bit.
KEY1
KEY2 KEY1
KEY2 KEY1 KEY2
KEY1 KEY2
Seg4/KS4
Seg1/KS1
Seg2/KS2
Seg3/KS3
Seg7/KS7
Seg5/KS5
Seg9/KS9
Seg6/KS6
Seg10/KS10
Seg14/KS14
b2 ------- b3
Seg8/KS8
Reading sequence
Seg11/KS11
Seg15/KS15
b4-------- b5
Seg12/KS12
Seg16/KS16
b6 -------- b7
Seg13/KS13
b0 ------- b1
3. LED PORT
Data is written to the LED port with command, starting from the least port’s least significant bit. ”L” output when
the bit of this port is 0, and “H” output when the bit is 1. The data of bits after the 5th bit are ignored.
MSB
LSB
b3
b2
b1
b0
LED1
LED2
LED3
LED4
Don't care
Remark: On power application, all the LED ports are “L” output.
4. COMMANDS
Commands set the display mode and status of the FIP driver.
The first 1 byte input to the SC16315 through the DIN pin after the STB pin has fallen is regarded as a command.
If STB is set high while commands/data are transmitted, serial communication is initialized, and the
commands/data being transmitted are invalid (however, the commands/data previously transmitted remain valid).
(1) Display mode setting commands
These commands initialize the SC16315 and select the number of segments and grids (1/4- to 1/12- duty, 16
segments to 24 segments).
When these commands are executed, the display and key scanning are forcibly turned off. Therefore, in order to
resume display, the display command “ON” must be executed. If the same mode is selected, however, nothing
will happen.
MSB
LSB
0
0
b2
b1
b0
Display mode settings
Don't care
0000: 4 digits, 24 segments
0001: 5 digits, 23 segments
0010: 6 digits, 22 segments
0011: 7 digits, 21 segments
0100: 8 digits, 20 segments
0101: 9 digits, 19 segments
0110: 10 digits, 18 segments
0111: 11 digits, 17 segments
1xxx: 12 digits, 16 segments
On power application, the 12-digit, 16-segment mode is selected.
HANGZHOU SILAN MICROELECTRONICS CO.,LTD
REV:1.0
2008.12.16
Http: www.silan.com.cn
Page 6 of 11