User manual

Code Mercenaries
3
KK
KK
ee
ee
yy
yy
WW
WW
aa
aa
rr
rr
rr
rr
ii
ii
oo
oo
rr
rr
22
22
44
44
DD
DD
5. Device Operation
KeyWarrior24D registers as a standard HID
keyboard and supports boot protocol. It does not
need any special drivers to be installed, standard
system drivers are sufficient.
The country code is 0 for not localized hardware,
which allows to use a single version of the chip for
all international keyboard layouts. Usage codes are
defined for 0 to 223, which includes all keys and
reserved codes below the modifiers, as well as the
compose keys for Asian languages and several
special keys that may or may not be supported by
individual operating systems.
5.1 Power Up
Every time the supply voltage is applied
KeyWarrior24D executes an internal reset
sequence. All internal pull up resistors are disabled
upon power up and will be activated during the
internal reset sequence.
5.2 How to use KW24D
KeyWarrior24D turns an 8 bit code and six status
lines for modifier keys into a USB keyboard data
report.
To generate a keystroke the HID usage code (see
the "KeyWarrior Scancode Tables" document for a
complete list of the keyboard usage codes) for the
required key is applied to D0..7. The status of any
modifier keys to be combined with this key is indi-
cated by pulling the corresponding pin low.
For example if a capital "A" should be produced
put $04 on D0..7 and pull down /R-Shft.
After applying the data make sure /ACK is high,
then pull down /STRB. /STRB may be pulled low
only when /ACK is high.
Then wait for KeyWarrior24D to pull down /ACK.
This signals that KeyWarrior24D has accepted the
data. Release /STRB and do not pull it low again
until /ACK has returned to high state.
All minimum setup and hold times are 0.
KeyWarrior24D will send the usage code as a short
key press.
5.3 Modifier keys
Modifier keys are input to KeyWarrior24D by
separate control lines. They can be transmitted in
combination with a key code. If only a change of
the status of the modifiers is intended apply a $00
to D0..7, which is the "idle" code for no key
pressed.
If the HOLD input is pulled high the status of the
modifier keys will stay valid until the next status is
passed to KeyWarrior24D on the next falling edge
of /STRB. When HOLD is low (default status due
to internal pull down resistor) the modifier keys
will return to idle after the keystroke.
V 1.0.0, December 2nd 2013, for chip revision 1.1.1.D and up