From 4e76be17ad6dab1ca62829e8640f8d8135527171 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Thu, 11 Jan 2024 20:51:07 +0100 Subject: [PATCH] 1.8 MHz --- system/ps2_keyboard.h65 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/system/ps2_keyboard.h65 b/system/ps2_keyboard.h65 index 5885c17..045a637 100644 --- a/system/ps2_keyboard.h65 +++ b/system/ps2_keyboard.h65 @@ -35,12 +35,14 @@ Import ps2kb, send_command, send_cmd, send_data, cmd_response, response_length, VIA = IO1 ; Enough time must pass for 3 bits to be shifted in. -TIMER_RECV = 230 ; 230 ms (@1MHz) +; TIMER_RECV = 230 ; 230 ms (@1MHz) +TIMER_RECV = 400 ; 230 ms (@1MHz) ; Enough time must pass for one bit must be shifted out (parity), ; but at most two (parity+stop). ; After that, the interrupt must have happened because the keyboard will pull data low. ; At that point, the SR needs to be set to input again -TIMER_SEND = 230 ; 180 ms (@1MHz) +; TIMER_SEND = 230 ; 180 ms (@1MHz) +TIMER_SEND = 400 ; 180 ms (@1MHz) PULL_REG = IO::RANH PULL_DDR = IO::DDRA