Answer the question
In order to leave comments, you need to log in
Is it possible to hardwire a PS/2 keyboard to STM32?
I looked through the PS / 2 protocol, it seems to be similar to USART.
Can a PS2 keyboard be hooked up to a synchronous USART?
Need only 1 transfer mode keyboard->STM
Answer the question
In order to leave comments, you need to log in
The protocol is similar to USART only in its most general form. You can use a hardware USART controller, but there is still a lot of juggling with individual bits, and it is unlikely that it will be possible to fully automate data exchange (for example, via DMA).
There are ready-made PS / 2 libraries for STM32. For example: https://github.com/gandro/stm32-ps2
And don't forget about level matching, PS/2 is five volt!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question