First post, by sklawz
- Rank
- Member
This is a simple example circuit and working software for a PIC Micro which converts a PS/2 enabled mouse into a RS-232 enabled serial mouse.
There is a related thread to this one here:
PS/2 Mouse port addon, optical mouse with serial protocol
A demo of this application can be seen here:
http://youtu.be/_iGMpO0fris
The PIC Micro chosen for this project was the PIC16F628A. Choice was simple, this device has both an internal oscillator and a serial UART. It is also one the cheapest PICs available at vendors and on ebay. Other PICs may be used if desired but the 628A is so cheap it seems like a pointless exercise.
An example circuit schematic and the source assembly code for this project can be found on my PIC Micro project pages which are here:
http://dev.kewl.org/k8048/
The project pages are mostly about programming PIC Micros and are mostly unrelated to the PS/2 converter. The actual detail you will require for a demo schematic is here:
http://dev.kewl.org/k8048/Src/asm/pic16f648a/gEDA/rs232.png
and for the working assembly file:
http://dev.kewl.org/k8048/Src/asm/pic16f648a/rs232.asm
Notice that the assembly file includes further assembly files, I will upload an INTEX HEX32 file here later ready for programming.
You may also notice that I used a 648A micro for the test, it's just a bigger version of the 628A.
There is further work required for the circuit, since the demo doesn't have a PSU nor does it attempt to use the RS-232 lines to power itself.
This thread should be used to rectify this, however, I will not be doing any more development on this project except for any software bug fixes but I will answer any questions regarding how this converter operates as best I can.
Good luck.
UPDATE (4th March 2013):
Here are two simplified schematics for two different PIC Micros:
PIC16F628A:
http://dev.kewl.org/k8048/Src/asm/mouse/gEDA/pic16f628a.png
PIC16F688:
http://dev.kewl.org/k8048/Src/asm/mouse/gEDA/pic16f688.png
Here are the Intel Hex 32 files:
PIC16F628A:
http://dev.kewl.org/misc/mouse/pic16f628a.hex
PIC16F688:
http://dev.kewl.org/misc/mouse/pic16f688.hex
Here are breadboard layout images:
Here are the source files:
PIC16F628A:
http://dev.kewl.org/k8048/Src/asm/mouse/pic16f628a.asm
PIC16F688:
http://dev.kewl.org/k8048/Src/asm/mouse/pic16f688.asm