Hallo Besucher, der Thread wurde 12k mal aufgerufen und enthält 59 Antworten

letzter Beitrag von Saskia am

Mega 65 ports add-on card - still available? if, where?

  • Hi,
    you can't buy it, i have made it myself. But since all the plans and schematics are
    made available by the M.E.G.A Team, it wasn't to hard. (only time consuming, i.e. getting
    the C65 keyboard connector, but if you need the c64 keyboard connector only, it's easier)
    see here: https://github.com/sy2002/DM65PIC
    soldering the ATmega onto the board was a pain in the a.. as well.
    So i would suggest, plan some time for building.
    the only thing i had to do was changing the pcb layout slightly, since the PCB manufacturer
    wasn't able to get the MEGA65 logo at the bottom of the PCB. (Some error with to high resolution). So i have glued the MEGA65 logo afterwards onto the board :-)
    here is a link to OSHpark, who have done my pcb.
    It costs roughly 120USD for 3 boards (3 boards is minimum order)
    https://oshpark.com/shared_projects/Y37xg9N7

    If you have questions or want more pics, feel free to ask. i am happy to help.

    Last word: if you can't wait for the motherboard MEGA is doing at the moment
    and want to hop directly into the project, make your own DM65pic board.
    Otherwise wait a little longer for news from M.E.G.A !

  • Hi Kuba,

    That is the exact one, but i wasn't able to get it from Molex:

    http://www.molex.com/molex/pro…55_FFC_FPC_CONNECTORS.xml

    But with the part number, i was able to find it on the net.

    Pitch size and so, you can find in the PDF from the above Molex link

    If you don't have a C65 Keyboard, you don't need it at all, then the C64 Keyboard connector is sufficent.

    One last hint: (not sure how good your soldering skills are) Better order 2 ATmegas directly.
    I have needed two attempts to get the ATmega soldered properly to the PCB...

  • One more tipp:
    The inductor L1 is also not given, after checking back, with the M.E.G.A Team they told me,
    that the Filter Conductor they were using is this one: Würth WE-CBF - 742 792 0415

    Any more questions, feel free to ask !

    And for all the other ones: If you ONLY need to connect a C64 Keyboard and Joysticks,
    use the Keyrah v2 board. It should work.
    http://www.vesalia.de/d_keyrahv2.htm
    The Main purpose of the Widget board and difference to the Keyrah is, to connect the C65 Keyboard and the Xpansion slot. (I think the Expansion slot implementation was not completed in the software, after MEGA decided to build their own Mega65 mainboard).
    So i have built the Widgetboard only because i wanted to connect my original C65 keyboard.

  • Thanks for the tips, actually I'm pretty confident with my soldering, I've soldered a few Minimig's and the FPGA chip there has even more pins (208 vs 176).

    I do have keyrah v2 on the way, but I'm a tad confused, I thought MEGA65 (due to nexys 4 boards limitations) only supports one device on the USB bus, do joystick ports from keyrah actually work on MEGA this way ? (can someone confirm that?)

  • Good question !

    That's something i don't know either, but i am also waiting for my Keyrah v2.
    So we will see soon.

  • It seems that keyrah_v2 maps joystick actions to keyboard strokes, I'm not sure which keys (I do suspect that one of the joystick would be mapped to arrows) and whether that is configurable.

    If that's true then MEGA65 won't see those joysticks as actual joysticks ...

  • I have contacted the Keyrah v2 Developer, since i know him from the german
    forum64 website, i've told him, what we would like to use the keyrah for
    and asked him if this is possible. I hope he can clarify.

    I have asked him, if the Keyrah simulates in c64 mode the following keystrokes, when moving the Joystick:

    PIN FUNCTION CONTROL PORT 1 CONTROL PORT 2

    NONE 255 127
    1 UP 254 (1) 126 (C= & F3)
    2 DOWN 253 (LEFT ARROW) 125 (C= & S)
    3 LEFT 251 (CTRL) 123 (C= & F)
    4 RIGHT 247 (2) 119 (C= & H)
    6 FIRE 239 (SPACEBAR) 111 (C= & K)

  • Controlport 1

    NONE: 255
    1 UP: 254 (1)
    2 DOWN: 253 (LEFT ARROW)
    3 LEFT: 251 (CTRL)
    4 RIGHT: 247 (2)
    6 FIRE: 239 (SPACEBAR)

    Controlport 2

    PIN FUNCTION CONTROL PORT 1 CONTROL PORT 2

    NONE: 127
    1 UP: 126 (C= & F3)
    2 DOWN: 125 (C= & S)
    3 LEFT: 123 (C= & F)
    4 RIGHT: 119 (C= & H)
    6 FIRE: 111 (C= & K)

  • This is the keymapping of the original C64.
    If you run a game on the c64 and it says "Push fire on joystick in port 2"
    By pressing "C=" & "K" the game would start.
    the joystick control lines of both Control ports are directly connected to CIA1 6526. same connections as the keyboard.

    The paddles wonn't work, because they were connected to the SID.

    So as long as the CIA emulation works, the MEGA will interpret those inputs as joystick.
    Voila, joysticks would work.
    (At least, theoretically ;-) )

  • Hi Kuba,

    unfortunately the response, i have received was not very helpful.

    So after i did some research, i think, i will mod my Keyrah a little bit.
    If i understand this plan correctly:
    http://www.deblauweschicht.nl/…/C64BT_service_manual.png

    I only need to switch the Keyrah to C64 (8Bit) mode, cut the original controlport traces on the Keyrah and manually wire the controlport cables (JoyA 0-3 / JoyB 0-3 and BtnA / BtnB / GND) to the relevant solder points at the keyboard connector, as given in the plan and it should work !

    Here is a quote from the Keyrah description:

    Switch settings:
    For 8-bit keyboards, the switch chooses between two key mappings: „down“ for emulators like Vice (C64) and Yape (plus/4, C16, C116), and the „middle“ position for everyday use. The emulator mapping is as easy as it can get: Every keypress will cause the exact thing that you'd expect the original machine to do when you press that key. For everyday use, the exact key mapping is described further down.

    from the website here:
    http://wiki.icomp.de/wiki/Keyrah_V2#C64_key_mapping

    And since we know, that the keyboard is working, this mod should get the Joysticks working too.
    (If i don't make a thinking error, but it doesn't look like...)

    I'll let you know, as soon as i've done it...

    Here is the Youtube video from Paul, using the Nexys with Keyrah:
    https://www.youtube.com/watch?v=eU7gl_1LVFE

  • If we leave Pin 7 on both controllports we probably even have 5V+
    (If not, i'll borrow it from the USB connector...)
    so Joysticks with Autofire should work, also electronic Joyportswitcher...

    ...we'll see... :-)

    Only thing that won't work are Paddles and Lightpen, but i can live without it.....

  • Yes, the keyrah v2 joy ports work perfectly fine for both Mega65 and c64 mode for joysticks. With the Keyrah in CBM mode (first click of the "power" switch), they function as expected; printing the contents of 56320 & 56321 with expected results and the Mega65 joy(x) works the same. While in pc mode (pressing the switch all the way to the top) the joy ports both work as cursor controls. I'm using the latest bitstream & the 910111.bin binaries.

    Cheers,
    c

  • @dropnine: Great news ! So no modding required. Excellent !
    And thanks for the .d81 conversion link

  • @Ordyne: I have one blank pcb left. I would like to have: 30€ (incl. p&p). If you want it, drop me an email with your adress to: adtbm@freenet.de

  • This must have something to do with how the chip on keyrah deals with ghosting (since the c64 keyboard doesn't have any diodes).
    since c64 itself has no support for ghosting at all, and assuming that the way to expose that issue doesn't show on the actual hardware - would most likely be caused by how the keyrah scans the keyboard matrix (+joysticks).
    Looking at the schematic, I think the 555/556 timer might be generating the frequency - that should be easy to compare with the rate at which keyrah does it...