Reply 60 of 72, by sklawz
- Rank
- Member
Hi
wrote:Did you take the ground-up approach, or did you use the Amiga converter code posted by keropi?
I didn't look at the Amiga code since that's clearly going to be for a bus style quadrature encoded mouse.
The PS/2 documentation referred to is this:
http://www.computer-engineering.org/ps2protocol/
and the serial documentation this:
http://www.kryslix.com/nsfaq/Q.12.html
wrote:Yes, please include a circuit schematic and source code. Did you write it using a C-compiler for PIC or use assembly from the onset?
Okay. I will create a new thread for this, it will be easier.
It's written in PIC assembly code, assembled using GPASM on Linux.
wrote:How was the mouse tracking quality at 1280x1024 in Windows?
See the youtube video?
wrote:If you are not using RTS and DTR on the serial port, you may be able to use either of these with a voltage regulator power the device, however the output is limited to 10 mA. Put a multi-meter in line to see what the typical current consumption of the PIC is under mouse operation.
RTS is a requirement for this converter as this is used to reset a generic serial mouse. DTR isn't used here, but with normal mice it is generally used to initiate a session, the mouse responds with 'M'. In my demo example it just sends an 'M' after reset which is fine for WINDOWS, MS-MOUSE and Linux GPM.
wrote:You might be able to use RTS and DTR on the serial line to power the PIC, however you will need to set RTS or DTR active by default (to output 10 V). Perhaps this is possible with a simple DOS driver at boot time.
EDIT: According to the PIC16F8X datasheet, the currnet draw is less than 2 mA at 5 V. I think most serial ports shouldn't have a problem with that. I've used serial ports to create 5 V regulated in the past and didn't have any issues.
I am not going to develop a dedicated PSU for this project. I will present it as-is, which is working code and an example schematic. An enterprising soul may complete the project with the modifications you envisage. I am not doing any more on this unless there is a software bug.
Thanks for your reply. I will create a new thread in MARVIN later.
Cya!
Edit:spelling