I would like to use a PS/2 keyboard for testing some of the WIFI click modules that work with the AT commands. The idea, is to type directly the commands and see the response of the WIFI click module, at run-time, rather than compiling and downloading each command.
For this, I am using the PIC Fusion v7, the PS/2 click demonstration program and associated PS_2_P32MX library, with a PIC32MX795F512L. The PS/2 click module was made by myself, as it is quite simple and the diagram is provided in both, the click’s manual and the help file of the C compiler.
The problem is in the demonstration program; after detecting the pressed key, it is not sending any key code to the USART terminal. After reading some posts here in the Forum, I found a reference to an external program, in which they added the instruction
Code: Select all
IntToStrWithZeros(keydata,txt);
Code: Select all
Ps2_Key_Read(&keydata, &special, &down)
I am sure the keyboard is working, as I tested it on a desktop computer. My hardware implementation of the PS/2 click is also working, as I measured with an oscilloscope the clock and data signals directly on the pins of the microcontroller.
I’ve tried the same setup with an Easy PIC board, with the same result. The demonstration program has no problem in detecting each pressed key, but it is not identifying which one was pressed. As these are pre-compiled routines, I cannot investigate or debug further.
Any help for solving this problem, will be much appreciated.
Alex