Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7742

General • Re: Japi Base: a full retro computer platform on one core + one PIO of the Pico 2

$
0
0
Hi Jan, I've managed to get the SD card working (on the Cytron Maker Pi Pico board), thanks very much. However, the USB keyboard to PS/2 bridge (https://github.com/No0ne/ps2x2pico) had been giving me lots of trouble, and I couldn't work out why. Eventually I tried slowing japi_base's keyboard's PIO state machine with...

Code:

    // For some reason, with the USB Keyboard to PS/2 bridge, the SM doesn't like    // being driven at full speed (260 MHz). The PS/2 clock speed is only 10 - 16.7 kHz.    // Let's sample at about 10 times the maximum, i.e 160 kHz.    sm_config_set_clkdiv(&c_ps2, clock_get_hz(clk_sys) / 160000);
above the line...

Code:

    sm_config_set_in_shift(&c_ps2, true, true, 11);
in `japi_base.c`, and that seems to have fixed it.

It's probably due to noise on my hardware setup, with its breadboards, long jumper wires, and its abundance of blue LEDs, but I thought I'd mention it in case anyone else has similar trouble using the USB-PS/2 bridge.

Statistics: Posted by PeterStansfeld — Wed May 27, 2026 9:22 pm



Viewing all articles
Browse latest Browse all 7742

Latest Images

Trending Articles



Latest Images