Code Mercenaries KeyWarrior24D User manual

Code Mercenaries
1
KK
KK
eeeeyyyyWW
WWaaaarrrrrrrriiii
oooorrrr22
22
44
44
DD
DD
1. Features
• USB low speed interface
• Full USB V1.1/2.0 compliance
• Full USB HID 1.1 compliance
• Direct data input for use with microcontrollers or simple circuits
• Supports all HID keyboard usage codes
• Modifier keys via direct control lines
• Single +5V power supply
• Low power consumption: 20mA max.
• Available as DIL24, SOIC24, and module
2. Functional Overview
KeyWarrior24D is intended for applications where computer keyboard input has to be generated from some kind of external data source. Keystrokes are generated by applying the key code and modifier key status to the KeyWarrior24D input lines and then generating a strobe signal. KeyWarrior24D will send the data as keyboard input data to the host computer and issue an acknowledge signal to indicate its readyness for another code.
3. Pin Configuration
KeyWarrior24D-P DIL24
KeyWarrior24D-S SOIC24
TOP VIEW!
1 2 3 4 5 6 7 8 9 10 11 12 13
14
15
16
17
18
19
20
DDDD00
00
DDDD11
11
DDDD22
22
DDDD66
66
DDDD33
33
////SSSSTTTTRRRRBB
BB
////RRRR----CCCCttttrrrrll
ll
////AAAACC
C
CKKKK
////LLLL----AAAALLLLTT
TT
////LLLL----GGGGUUUUII
II
GGGGNNNNDD
DD
DDDD++
++
PPPPuuuullllllllTTTTooooGGGGNN
N
NDDDD
DDDD--
--
VVVVrrrreeeegg
gg
VVVVcccccc
cc
HHHHOOOOLLLLDD
DD
NNNNCC
CC
DDDD55
55
DDDD44
44
21
22
23
24
////RRRR----AAAALLLLTT
TT
////RRRR----GGGGUUUUII
II
DDDD77
77
////RRRR----SSSShhhhfffftt
tt
V 1.0.0, December 2nd 2013, for chip revision 1.1.1.D and up
UUUUSSSSBBBB KKKKeeeeyyyybbbbooooaaaarrrrdddd CCCCoooonnnnttttrrrroooolllllllleeeerrrr wwwwiiiitttthhhh ddddiiiirrrreeeecccctttt ddddaaaattttaaaa iiiinnnnppppuuuutt
tt
Code Mercenaries
2
KK
KK
eeeeyyyyWW
WWaaaarrrrrrrriiii
oooorrrr22
22
44
44
DD
DD
4. Pin Descriptions KeyWarrior24D
4.1 Pin Functions
D+, D-
Differential data lines of USB. Connect these signals direct to the USB cable or type B plug.
Vreg
Regulated 3V output, to be used only for the purpose of powering the USB D- pull up resistor. Do not use this pin as a supply for any other circuit than the pull up resistor.
D0..D7
Data inputs, the HID usage code for the keystroke must be put on those lines prior to pulling /STRB low. Inputs with internal pull up resistors.
/L-ALT, /L-GUI, /R-Ctrl, /R-Shft, /R-ALT, R-GUI
Inputs for modifier keys. For ALT and GUI left and right keys are available, for Ctrl and Shift only right keys. Pull an input low to activate the corresponding modifier key for the next /STRB signal. Inputs with internal pull up resistors.
/STRB
Strobe input to tell KeyWarrior24D to send a key code. Pulling this line low triggers KeyWarrior24D to send the usage code and modifiers as a keystroke. Input with internal pull up resistor.
/ACK
Handshake output. This line gets pulled low by KeyWarrior24D when it has accepted the data on D0..7 and modifier inputs. Open drain with internal pull up resistor.
HOLD
Pull this pin high to keep modifier key status active until next /STRB signal. Input with internal pull down resistor.
Pull to GND
This pin is used during production of the KeyWarrior chips, connect to GND.
GND
Power supply ground.
Vcc
Supply voltage.
Name
I/O
Type
Pins
Description
D+, D-
D0, D1, D2, D3, D4, D5, D6, D7 I/OIspecial
inputs with internal pull up resistor
16, 15
1, 2, 3, 4, 24, 23, 22, 21
USB differential data lines
Data input lines for the key code (HID usage code)
/L-ALT, /L-GUI, /R-Ctrl, /R-Shft, /R-ALT, /R-GUI
/STRB
/ACK
HOLD
IIinputs with internal pull up resistor
input with internal pull up resistor
OIopen drain output with internal pull up resistor
Input with internal pull down
6, 19, 7, 18, 8, 17
5
Input lines for the modifier keys. Pull low to activate modifier
Pull low to signal that keycode data is valid and should be send
2012Gets pulled low by KW24D to signal that data has been accepted
Pull high to hold modifier status PullToGND
GND
Vcc
Vre gIPower supply
O
Power supply
Regulated 3V out
NC-109Used during manufacturing, connect to GND
Ground
1411Supply voltage
Power for D- pullup resistor
13
do not connect
V 1.0.0, December 2nd 2013, for chip revision 1.1.1.D and up
Code Mercenaries
3
KK
KK
eeeeyyyyWW
WWaaaarrrrrrrriiii
oooorrrr22
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
Loading...
+ 5 hidden pages