M
M
Maxim2018-06-09 09:33:26
Microcontrollers
Maxim, 2018-06-09 09:33:26

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

2 answer(s)
O
Ocelot, 2018-06-09
@pokk-pokk

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!

P
pfg21, 2018-06-09
@pfg21

read the communication protocol.
as far as I remember there is definitely not uart.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question