Difference between revisions of "PS/2"
From ArmadeusWiki
(→Hardware connection) |
|||
Line 9: | Line 9: | ||
Connection of the PS/2 connector to the FPGA: | Connection of the PS/2 connector to the FPGA: | ||
[[http://artemys25.free.fr/armadeus/images/PS2_Schema.png PS2_Schema.png]] | [[http://artemys25.free.fr/armadeus/images/PS2_Schema.png PS2_Schema.png]] | ||
− | + | Connect the PS2 data line to the pin P137 (IO_L27N_0) and the clock to the pin P140 (IO_L01P_0). | |
===Firmware installation=== | ===Firmware installation=== |
Revision as of 21:28, 29 November 2006
Contents
Instructions to connect a PS/2 keyboard to your Armadeus board
Introduction
Your Armadeus board allows you to connect it a PC keyboard, by using the power of the Spartan3 FPGA (if present on your board).
Hardware connection
Connection of the PS/2 connector to the FPGA: [PS2_Schema.png] Connect the PS2 data line to the pin P137 (IO_L27N_0) and the clock to the pin P140 (IO_L01P_0).
Firmware installation
Firmware for PS/2 is avaiblable in your SVN repository: software/firmware/PS2/ps2_top.bin.
Copy it to your TFTP directory and follow the procedure here: Firmware installation
Memory Map
The core uses the following register map:
Address | Name | Description |
0x12000000 | Status register | The following bits are used: 0x2 => empty, 0x8=>full, the other bits can be ignored (not used or for debug purposes) |
0x12000002 | Data read register | The keyboard scancodes can be read from this register. After each access, the next byte from the fifo appears here |
0x12000004 | Test register | (has nothing to do with the PS2 interface, just for fun) The lower 8 bit behave like a normal RAM |
0x12000006 | Test register | (has nothing to do with the PS2 interface, just for fun) The lower 8 bit behave like a normal RAM |
0x12000008 | Test register | (has nothing to do with the PS2 interface, just for fun) The value is always 0x1234, write is ignored |
BUGS
Status register start with value 0x000A -> Fifo Full + Fifo Empty normal ??