OpenCores
URL https://opencores.org/ocsvn/ps2/ps2/trunk

Subversion Repositories ps2

[/] [ps2/] [web_uploads/] [index.shtml] - Rev 53

Compare with Previous | Blame | View Log

<!--# set var="title" value="Title" -->
<!--# include virtual="/ssi/ssi_start.shtml" -->
<b><font size=+3 face="Helvetica, Arial"color=#bf0000>Project: ps2_interface</font></b><p><table  align=center border=1 cellPadding=2 cellSpacing=0 width="100%" valign="top"><tbody><tr bgcolor=#bbccff>    <td align=center valign=center>               
<a href="./people.shtml">People</a>               |
<a href="./documentation.shtml">Documentation</a>               |
<a href="./download.shtml">Download</a>               |
<a href="mailto:cores@opencores.org">OpenCores Mail list</a>               |
<a href="mailto:jclaytons@earthlink.net">Contact me</a>    </td></tr></tbody></table><p><font size=+1><b>Description</b></font><P>The PS/2 interface project (ps2_interface) is interface hardware to allow using a ps2 mouse or keyboard in your project.  The code is written in Verilog, and was sythesized into a Xilinx SpartanII XC2S200 chip.  Debugging was done with an HP16500 series logic analyzer, and there is no testbench for these interfaces.</p>
<p>For the keyboard interface, there is translation from scan codes into ASCII characters, for those scan codes that have ASCII equivalents.  Also, the keyboard interface traps the left/right shift scan codes, and produces uppercase ascii when appropriate.  This means that the keyboard interface can be used with a serial port core to create an ASCII terminal type of interface on chip.  The keyboard interface is bi-directional, so the user can send commands to change the operation of the keyboard, or light up the "Num Lock", "Caps Lock" and "Scroll Lock" LEDs as desired.</p>
<p>The mouse interface implements "hot plugging" of the mouse.  This means that the mouse may be unplugged and then re-connected, and the interface hardware will recognize this, and issue the command to put the mouse into "streaming mode" so that it starts sending out data packets.  The position updates from the mouse are provided in terms of two 10-bit signed quantities: an X-increment and a Y-increment.  In actual use, the Y-increment appears to be negative of the sense you would expect (i.e. moving the mouse up produces a negative increment...)  For simplicity, this interface only sends one command to the mouse, which is the command to put it into streaming mode.</p>
<p>The design team of ps2_interface welcomes any kind of help and feedback on these cores.  If you are interested in further development of this project, please contact us.<br><br><BR><p>Current Status:<ul><li>These cores have been coded completely, synthesized and tested for correct operation (and debugged!) inside a Xilinx XC2S200 chip.  The tools used for development were the Xilinx Foundation 3.1i (non-ISE) tools.</li><li>These cores were also tested using the free Xilinx Webpack ISE (9/10/01) tools.  However, the "rs232_syscon.v" module has to be modified to work with ISE (only important for the "soc" type downloads).  The ASCII characters must be coded as numbers in ISE...<li>There are no technology-dependent elements used in these cores.</li><li>The cores consume about 100 Xilinx Virtex slices each (depending on parameters)</li><li>The cores are parameterized to allow changing timer values to accomodate different clock speeds.</li><li>The code has comments.</li><li>The interface to the mouse and keyboard use tri-state I/O for the bi-directional clk and data lines.  These lines must have pullup resistors! (the value is not very critical.)</li><li>The interface is currently implemented using state-machines (no processor is involved.)</li><li>"Debounce" states are provided in the state machines, to make the interfaces more tolerant of different types of mice and keyboards.</ul><p>In the future, a bare bones version of the keyboard interface could be implemented which implements only receive, to save on resource utilization and eliminate the bi-directional interface.  For the mouse interface, this is impossible, since the mouse requires a "streaming mode" command in order to begin sending its data packets.<p>Maintainer(s):<ul><a href="mailto:jclaytons@earthlink.net">John Clayton</a></ul><p>Mailing-list:<ul><a href=mailto:jclaytons@opencores.org>jclaytons@opencores.org</A></ul><!--# include virtual="/ssi/ssi_end.shtml" -->
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.