STFPC320
8.1
Key read sequence
Key matrix
MSB
LSB
Data Setting Command
0
1
1
0
0
0
0
0
MSB
LSB
Key Data Byte 1
b7
b6
b5
b4
b3
b2
b1
b0
MSB
LSB
Key Data Byte 2
b7
b6
b5
b4
b3
b2
b1
b0
MSB
LSB
Key Data Byte 3
b7
b6
b5
b4
b3
b2
b1
b0
Description:
For example when the key corresponding to the KEY1/KS1 is pressed, the bit b0 of
Byte 3 will be set. This is decoded as the key value connected to KEY1/KS1 which
could be “PLAY” (for example). When the processor decodes the key value
corresponding to the “PLAY” key, it takes the necessary action (e.g. play the disc).
Note:
Upon a key-press, the IRQ_N/SQW pin will be asserted. The interrupt flag should be read to
know the source of interrupt. The interrupt flag is read by sending the 0x63 command. As
soon as the interrupt buffer is read, the IRQ_N/SQW pin will be de-asserted.
43/78