GithubHelp home page GithubHelp logo

Comments (7)

misterjbam avatar misterjbam commented on June 23, 2024

the developer of the core atai ST wants to do without GPIO and run everything via USB (keyboard, mouse, controller)
Do you think it would be possible to implement on the C64 core?

from tang_nano_20k_c64.

vossstef avatar vossstef commented on June 23, 2024

Hi, if i am not totally mistaken there are already serveral projects that are using FPGA IO pins with low speed USB 1.1 devices (keyboard, mouse, joystick) even without the dedicated USB tranceivers like USB3317 or MAX3421E. Interfacing needs would collapse just into USB connector, resistors and maybe fpga input protection. See e.g. github.com/nand2mario/usb_hid_host/tree/main
At the moment i am concentrating more on burning tasks like proper HDMI output and porting memory from bram to dram rather thoughts of moving away from good old PS2 KB and beloved legendary competition pro digital joystick... but time will come also for that. However if such GPIO 'normalization' would become available would be of course interested to utilize it.

from tang_nano_20k_c64.

harbaum avatar harbaum commented on June 23, 2024

As an intermediate step I am currently programming a M0S Dock (also made by Sipeed) to act as a USB/PS2 bridge to give the MiSTeryNano access to a USB keyboard and a USB mouse. The same solution should work for your C64 core as well.

In the long term I am planning to do this with the BL616 already present on the Tang Nano 20k.

from tang_nano_20k_c64.

vossstef avatar vossstef commented on June 23, 2024

As an intermediate step I am currently programming a M0S Dock (also made by Sipeed) to act as a USB/PS2 bridge to give the MiSTeryNano access to a USB keyboard and a USB mouse. The same solution should work for your C64 core as well.

In the long term I am planning to do this with the BL616 already present on the Tang Nano 20k.

I see and thanks for notification.
Guess we would we need something like a 4 port USB2.0 hub to connect keyboard, mouse and two gamepads or alternately two joysticks isn't it ? Looks to me like excellent scalable and flexible soluation rather than growing amount of diff pair needs per HMI input device at FPGA.

from tang_nano_20k_c64.

harbaum avatar harbaum commented on June 23, 2024

These mini USB hubs fit nicely: https://a.aliexpress.com/_EIidgjH

Also my primary interest for this are small cheap wireless keyboard and touchpad combos to give the Atari ST a keyboard and a mouse. These integrate both devices and thus only one small USB dongle is needed. Together with the necessary USB-C/USB-A adapter this is still very small.

I now have a M0S Dock acting as a USB host for a small keyboard/touchpad combo device. And it currently outputs two PS/2 signal pairs for keyboard and mouse:
https://www.youtube.com/shorts/jjps1x1NjhE

I am pretty sure this would already work with the C64 core as well.

from tang_nano_20k_c64.

harbaum avatar harbaum commented on June 23, 2024

Did you try one of those 5 inch 800*480 LCDs they sell for the TN20k? These cope nicely with 50hz and 31.5kHz signals and can e.g. display all the Atari ST video modes.

I am sure they'd work with your core as well. But as the lcd uses many of the IOs only few are left for peripherals and allowing for at least spi or PS2 together with the lcd would probably require yet another relocation of pins.

Btw: these devices: https://www.notjust4nerds.de/Riitek-Rii-i8-Mini-DE-Funk-USB-Dongle-Tastatur-QWERTZ-Maus-Kombo-beleuchtet-kabellos

work nicely with the Tang Nano. They are sold on AliExpress for less than 10 Euros. They work as mouse and keyboard and I consider mapping those top left buttons to joystick.

from tang_nano_20k_c64.

vossstef avatar vossstef commented on June 23, 2024

I did make use of the Sipeed SH500Q01Z LCD-TFT with CoG TCON Ilitek ILI6122 https://api.dl.sipeed.com/shareURL/Accessories/LCD in the VC20 project https://github.com/vossstef/tang_nano_9k_vic20_lcd and it is working rather fine. Just a bit scared to break the flexfoil when plugging and unplugg it from TN too often. This Sipeed LCD does not have any touch sensor. TN20k seem to be rather limited in available IO when it comes to parallel LCD (or old VGA) interfacing. Maybe the Tang Primer 20k + full blown Dock would be a better choice as far more IO's available.

from tang_nano_20k_c64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.