beautypg.com

DNF Controls ST400-CP User Manual

Page 15

background image

ST400-CP User Manual

Page 15 of 19

2)

Keyboard Decoding Table:


In a Change Bitmap:
Bit = 1 – the key’s state has changed, Bit = 0 – the state has not changed.

In a State Bitmap:
Bit = 1 – the key is pressed, Bit = 0 – the key is released.

KeyData0:

Bit0= Key 1
Bit1= Key 2
Bit2= Key 3
Bit3= Key 4
Bit4= Key 5
Bit5= Key 6
Bit6= Key 7
Bit7= Key 8


KeyData1:

Bit0= Key 9
Bit1= Key 10
Bit2= Key 11
Bit3= Key 12
Bit4= Key 13
Bit5= Key 14
Bit6= Key 15
Bit7= Key 16


KeyData2:

Bit0= Key 17
Bit1= Key 18
Bit2= Key 19
Bit3= Key 20
Bit4= Key 21
Bit5= Key 22
Bit6= Key 23
Bit7= Key 24

KeyData3:

Bit0= Key 25
Bit1= Key 26
Bit2= Key 27
Bit3= Key 28
Bit4= Key 29
Bit5= Key 30
Bit6= Key 31
Bit7= Key 32


KeyData4:

Bit0= Key 33
Bit1= Key 34
Bit2= Key 35
Bit3= Key 36
Bit4= Key 37
Bit5= Key 38
Bit6= Key 39
Bit7= Key 40


KeyData5:

Bit0= Key 41
Bit1= Key 42
Bit2= Key 43
Bit3= Key 44
Bit4= Key 45
Bit5= Key 46
Bit6= Undefined
Bit7= Undefined