deckle studio
Open the editor
Behavioural mixed-signal modelps2_keyboard

PS/2 keyboard (your keyboard)

A PS/2 keyboard on its mini-DIN socket (VCC, GND, CLK, DATA): while the simulation runs, it is your real keyboard. It clocks its scan codes (set 2) itself at 12.5 kHz on the open-collector lines and answers the host's commands (reset, LEDs, typematic rate, identify). The host pulls CLK and DATA up (4.7–10 kΩ). A microcontroller that reads the lines through its own logic (ESP32 ULP with FabGL) gets them directly; the pins show them sampled at the simulation step.

VCCCLKDATAGNDPS/2 keyboard
Schematic symbol

Key data

Category
Interfaces
Simulation model
Behavioural mixed-signal model
Reference prefix
KB
Pins
4

Used in these examples 1

Simulation model

A behavioural model implements the interface of the chip (registers, protocol, timing) at its pins. The pins are connected to the analog circuit like CMOS pins.

Model
ps2_keyboard
Supply pins
VCC / GND

Pins 4

PinNameUse
VCCVCCSupply pinSupply input: decouple with 100 nF close to the pin
CLKCLKI/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
DATADATAI/O pinGeneral-purpose I/O: LEDs (with series resistor), buttons (with pull-up)
GNDGNDGround pinGround

PCB

No land pattern: the part is not placed on the board.