DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)

Started by timofonic, February 28, 2008, 02:29:11 AM

Previous topic - Next topic



I found this and seems interesting.

Anyone could make it and see how the mouse adapter works? It can be useful if not having the original mouse or gets broken.

What about the other links in the first site? I have no clue of Japanese so not sure what they are.



I'm trying to compile the .asm file for ps2 mouse converter (first link from Kum) but no success  :(

this is the result from command "'picasm PS2MS.asm":
the pic16f84.h  is also located in picasm directory

00006 :         include "PIC16F84.h"
        ^ No previous PROCESSOR or 'LIST P=' statement (INCLUDE)
00007 :         config  CP=OFF , PWRT=ON , WDT=ON , OSC=HS
               ^ Unknown opcode (CP)
00008 :         picid   0,0,0,2
              ^ Opcode or directive expected (00)
00010 :         org     0
            ^ Opcode or directive expected (0)
00011 : E_SPEED:        edata   4       ;âXâsü[âhé╠Åëè·Æl
                ^ Unknown opcode (EDATA)
00014 : E_LED:          edata   8       ;LEDé╠ò\Īâéü[âh
               ^ Unknown opcode (EDATA)
00022 : E_CBUT:         edata   0       ;É^é±Æåé╠â{â^âôé╠ô«ìý
                ^ Unknown opcode (EDATA)
00025 :         org     0x30
            ^ Opcode or directive expected (0X30)
00026 : MARK:   edata   0x50,0x53,0x32,0x4D,0x53,0x30,0x32,0x30
             ^ Unknown opcode (EDATA)
00027 :         edata   0x20,0x4E,0x2E,0x4B,0x75,0x6D,0x6F,0x6E
              ^ Opcode or directive expected (0X20)


Good news, compiled PS2MS.asm to .hex file using picasm on slackware linux  ;D

Next step, try the ps/2 converter via breadboard :)


... and then, my old willem pcb3 refuses to program pic16f84  >:(  >:(  >:(  but it programs 16f630 and 16f628a like a charm (i use winpic800 3.61, tried 3.63 and 3.64 but no success anyway)

is it possible to convert a 16f84 asm source code and recompile it to work on 16f628  ???


Finally, 16f84 "recorded" with a friend's pic programmer   ;D

I'll try to build/test the mouse adapter project this week.


 Great stuff ! Please do a wiki article and upload the code for the PIC when you succeed. Keep up the good work !
X68000 personal computer is called, "X68K" or "no good good" is called, is the PC that are loved by many people today.


Did you manage to do it? If so, are you willing to sell a pre-programmed pic?


Does anyone happen to have the compiled hex file for this project they could post up please?


No worries - I just installed pic2asm on a debian box and compiled it myself.  If anyone needs it, then here it is...


Just to confirm - I made the adaptor on a breadboard using the hex file I attached above.  It's all working. 

Now to get it all on some strip-board and boxed up.  The LED array is a nice touch on this device.  Very pleased to have a working mouse - now I can check out Populous on this thing! :)


 Hi Dal !

Thank you very much for the effort. Your work has been added to the hall of fame !

Connecting a PS2 mouse to X68000

Keep the scene alive !
X68000 personal computer is called, "X68K" or "no good good" is called, is the PC that are loved by many people today.


Here's a little before and after.  The breadboard 'test' and the final boxed version:



I will reply to myself. Maybe it is going to be useful to someone else. The info is written in Japanese P2MS.DOC file.

There are 2 buttons on the adapter - RESET and SPEED (btw. their description is reversed in schematic).

If you press SPEED without any mouse button, you change mouse speed in 6 steps.

If you press SPEED while left mouse button is depressed, you change the 6 LED behavior (display mode). There are 6 display modes:
1. Mouse speed showed on single LED 1-6.
2. Mouse speed showed on 6 LED bar graph.
4. Communication state with X6800 - LEDs changing from left to right and vice versa, such as KITT in Knight Rider when there is a communication between adapter and X68000. It is mostly constantly moving, only when moving mouse it slows down a little and it does not do anything in apps not using a mouse, such as MuTerm.
8. Communication with PS/2 mouse - LEDs changing from left to right and vice versa, such as KITT in Knight Rider when there is a communication between adapter and PS/2 mouse.
16. Mouse state - data transferred to X68000 in the form: the 1st LED - left button, the 2nd LED - right mouse button, the LEDs 3-6 - mouse move direction.
32. Actual mouse movement speed in the form of bar graph.

If you press SPEED while both (left and right) mouse buttons are depressed, the actual setup (mouse speed and display mode) is stored to EEPROM. All LEDs flash several times to confirm successful EEPROM save.


Dal, can you confirm that the schematic for the PS2MS adapter is correct?
I have built one adapter on breadboard, and so has another forum member nearby, and neither one has worked. Have tried several speed grades on the PIC and even recompiling the code.

The only doubt I have is regarding the capacitors. I used polyester capacitors this time; when I built my keyboard adapter, I used ceramic ones.


Both schematics and codes for PIC16F84A work great. Friend od mine adapted the code for PIC16F628, which is cheaper and easier to obtain. More info here (sorry for the Czech language, try to use Google translate icons in upper right corner, or ask me here).



I can confirm that Martin's friend's PIC16F628 files work. Burning them was difficult (I may have received bad chips from China) on my old Velleman programmer (which has worked fine with 628 chips before), but unlike the 16F84 chips, it actually did work.


I'm searching for someone who can build for me a mouse adapter for my X68000. If someone can make that and sell it to me... PM me ! (I'll pay with Paypal).

Thank you.