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.
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
| Pin | Name | Use |
|---|---|---|
| VCC | VCCSupply pin | Supply input: decouple with 100 nF close to the pin |
| CLK | CLKI/O pin | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| DATA | DATAI/O pin | General-purpose I/O: LEDs (with series resistor), buttons (with pull-up) |
| GND | GNDGround pin | Ground |
PCB
No land pattern: the part is not placed on the board.