PS2 Keyboard connected to 40X1 on axe022 board

unigamer

Member
I am trying to connect a PS2 keyboard to a 40X1 with a axe022 prototype board (28X/40X). The LEDs of the keyboard come on but I can get no communication between PICAXE and keyboard.

I tested the keyboard on a computer and it is working correctly.

I have tried two test programs:

----

main:
kbin [1000,main],b2 'wait for new signal
if b2 = $45 then swon1 'switch on 1
if b2= $25 then swoff1 'switch off 1
debug
goto main



swon1:
b0 = 1
goto main


swoff1:
b1 = 1
goto main

-------------

main:
keyled %10000111 ‘ all LEDs on
pause 500 ‘ pause 0.5s
keyled %10000000 ‘ all LEDs off
pause 500 ‘ pause 0.5s
goto main ‘ loop

--------

I have checked the actuals legs of the PICAXE and leg 30 (kb data)and 29 (kb clock)are fine.

My resistors are both just under 5000ohms and are wired up to the circuit on page 91 of picaxe_manual2.pdf

I am probably doing something really stupid like somehow not wiring it up correctly but are there any common mistakes I am likely to have made?

Thanks.

 
 
Top