0% found this document useful (0 votes)
46 views3 pages

ps2 Serial2

This project uses a PIC microcontroller to interface between a PS/2 keyboard or mouse and an RS232 serial interface. The PIC software implements libraries for the PS/2 and RS232 interfaces in assembler. The circuit is built on stripboard with the PIC, RS232 connector, PS/2 connector, and basic passive components. It operates by initializing the PS/2 device, reading data, and sending it out the RS232 interface in a continuous loop.

Uploaded by

Midhun Viswam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views3 pages

ps2 Serial2

This project uses a PIC microcontroller to interface between a PS/2 keyboard or mouse and an RS232 serial interface. The PIC software implements libraries for the PS/2 and RS232 interfaces in assembler. The circuit is built on stripboard with the PIC, RS232 connector, PS/2 connector, and basic passive components. It operates by initializing the PS/2 device, reading data, and sending it out the RS232 interface in a continuous loop.

Uploaded by

Midhun Viswam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Description

This project is a Microchip PIC microcontroller with an RS232 serial interface on one side and
an PS/2 (keyboard or mouse) interface on the other. The PS/2 interface uses bit-banging on a
12F683 device.

Important - All mention of RS232 on this page actually refers to RS232 waveforms operating at
5V TTL levels not +/-12V levels which would destroy the PIC device. An appropriate converter
between the two must be used.

The PS/2 interface operates as a host and initialises the keyboard or mouse before going into a
never-ending loop of reading the data and sending it to the RS232 interface.

Pictures

The circuit is built on stripboard with a DIL packaged IC and conventional through-hole passive
components. The PCB is glued into the base of a small box for convenience.

The PIC microcontroller is the only IC and mounted approximately in the centre of the PCB. The
RS232 connector is on the right with the PS/2 connector on the left.

PIC Software
The PIC software is written in assembler and this project was the development platform for the
PS/2 library functions.

The complete information for this project is available for download. This includes the library
functions for the RS232 and PS/2 interfaces as well as the circuit diagram, layout diagram and
various C programs. This project is included in the library of PIC code that is available for
download.

Circuit Diagram

The circuit diagram is very simple with only the RS232 interface (a connector), PS/2 interface (a
connector and 2 pull-up resistors), PIC (IC and decoupling capacitor) and ICSP (socket, 1 diode
and 1 resistor).

Circuit Layout
This simple PCB layout diagram shows the placement of the components on the stripboard. The
view is from the top of the PCB, the same as in the photograph.

You might also like