• 3.3V PS/2 with 5V micro

    lion mclionhead • 10/10/2026 at 22:25 • 0 comments

    It turns out the 18f14k50 being used is a 5V part so it doesn't need a voltage regulator at all.  What still needs a voltage regulator is the touchpad.  So the PS/2 signal was kept on 3.3V pullups while the 18f14k50 was reconnected directly to 5V.

    It was probably browning out, since it needed 3.0V to run at 48Mhz & the brownout reset was disabled.  Helas, it continued failing to enumerate after a certain amount of time.  Verified it doesn't enumerate if the touchpad is disconnected.  Trends pointed to the touchpad browning out or somehow getting wedged.  Amazing how complicated & fussy something as primitive as the PS/2 protocol was.  That was introduced in 1987 with the mighty 8Mhz IBM PS/2 & is probably still used in modern touchpads.  

    The next step would be making it more robust against touchpad glitches.  Made it initialize USB without waiting for the touchpad & try to reinitialize the touchpad if it detects an error.  Detecting an error is the tricky bit.