nfg.forums

NFG Forums => SIG X68000 => Topic started by: timofonic on February 28, 2008, 02:29:11 AM

Title: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: timofonic on February 28, 2008, 02:29:11 AM
Hello.

I found this and seems interesting.

http://kum.dyndns.org/works/
http://kyoutan.sakura.ne.jp/uts/pc/pic/x68key/
http://wig.nu/w341/mc68.html
http://www.tsp.ne.jp/%7Esawada/mago/index.html



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.


Regards.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: carlosemandrade on May 01, 2010, 07:06:45 AM
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

PS2MS.ASM
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)
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: carlosemandrade on May 06, 2010, 03:59:37 AM
Good news, compiled PS2MS.asm to .hex file using picasm on slackware linux  ;D

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






Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: carlosemandrade on May 07, 2010, 06:10:33 AM
... 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  ???
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: carlosemandrade on June 10, 2010, 07:09:00 AM
Finally, 16f84 "recorded" with a friend's pic programmer   ;D

I'll try to build/test the mouse adapter project this week.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: eidis on June 10, 2010, 07:58:39 AM
 Great stuff ! Please do a wiki article and upload the code for the PIC when you succeed. Keep up the good work !
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: People? on September 26, 2010, 06:05:20 AM
Did you manage to do it? If so, are you willing to sell a pre-programmed pic?
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Dal on September 18, 2014, 10:23:12 PM
Does anyone happen to have the compiled hex file for this project they could post up please?
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Dal on September 18, 2014, 11:20:01 PM
No worries - I just installed pic2asm on a debian box and compiled it myself.  If anyone needs it, then here it is...
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Dal on September 19, 2014, 04:47:14 AM
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! :)
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: eidis on September 19, 2014, 04:12:09 PM
 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
http://gamesx.com/wiki/doku.php?id=x68000:don_t_have_a_mouse (http://gamesx.com/wiki/doku.php?id=x68000:don_t_have_a_mouse)

Keep the scene alive !
Eidis
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Dal on September 21, 2014, 05:25:11 AM
Here's a little before and after.  The breadboard 'test' and the final boxed version:
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Martin8bity on August 20, 2016, 05:57:33 PM
What indicates the LED array?
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Martin8bity on September 29, 2016, 12:27:01 AM
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.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: idrougge on December 15, 2016, 01:22:36 AM
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.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: Martin8bity on December 17, 2016, 08:20:38 PM
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).

http://www.8bity.cz/2016/sharp-x68000-ps2-mouse-adapter/

http://www.8bity.cz/2016/sharp-x68000-ps2-keyboard-adapter/
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: idrougge on December 27, 2016, 09:59:14 AM
That's great! I've got lots of 16F628s at home.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: idrougge on February 24, 2017, 10:49:06 AM
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.
Title: Re: DIY projects for X68000 (ps/2 mouse adapter, x68k keyb on pc, pic programmer...)
Post by: huggyone76 on September 24, 2017, 06:46:00 PM
Hello,
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.