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...
above the line...
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.
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);Code:
sm_config_set_in_shift(&c_ps2, true, true, 11);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




