USB-HID-Keyboard-LPC1343 using an Olimex LPC-P1343
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
HIDKeyboard.c
HIDKeyboard.h
HIDKeyboard.uvproj
README.md
hid.h
hiduser.c
hiduser.h
startup_LPC13xx.s
system_LPC13xx.c
type.h
usb.h
usbcfg_LPC13xx.h
usbcore.c
usbcore.h
usbdesc.c
usbdesc.h
usbhw_LPC13xx.c
usbhw_LPC13xx.h
usbreg_LPC13xx.h
usbuser.c
usbuser.h

README.md

README

This code transforms an Olimex LPC-P1343 into an USB HID Keyboard input device. All that is needed is some switcches connected between the io pins and GND.

Requirements

  • To compile and build you need the KEIL ARM (evaluation) tools.
  • An Olimex LPC-P1343
  • Some Switches (footswitch or other pushbutton switch ).
  • Some Soldering skills...
  • Optional : Keil ULINK2 JTAG Prgrammer.

How do I get set up?

  • Connect the switches between GND and the io pins:

  • P1.6 = Key 1

  • P1.7 = Key 2

  • P1.8 = Key 3

  • P1.9 = Key 4

  • P1.10= Key 5

  • Compile and build the project.

  • You can change the hardcoded keys in the GetInReport() function. See the USB [HID Spec] (http://www.usb.org/developers/hidpage/Hut1_12v2.pdf) page 53 for details.

Deployment instructions

Using ULINK2

  • Make sure Jumper BLD_E is removed.
  • Connect to the host PC.
  • Download the code in the CPU
  • Remove the JTAG and reset the board.

Without ULINK2

  • Place the jumper BLD_E
  • Connect to the host PC.
  • The CPU will present itself as an USB disk in explorer.
  • Copy the binairy to this new drive.
  • Remove the power.
  • Remove jumper BLD_E.
  • Reconnect the power.(resetting also works without removing the usb cable first)