Description: Instructions for use:
1, the header file is still in the update, it will be necessary to extract from the PS2 keyboard, the keyboard scan codes, and can separately store the last time the pass code and break code.
2, the header file provides a Scan_Key_Board_PS2 () function, which will simulate the output of the keyboard into the PS2 ordinary n* m keyboard scan output mode, that is, when there are key pressed by the function will receive the corresponding keyboard scan codes , when no key is pressed, it will get a KEY_NULL return.
3, the header files required hardware support for:
A falling edge triggered external interrupt, and will. H in the macro KEY_BOARD_PS2_INSERT_INT_ISR_CODE paste it into the interrupt handler. The external interrupt PS2 then the CLK line.
A common port, then the Data-line PS2.
4, the PROC_Key_Board_PS2_Scan () into the millisecond timer interrupt handler, or into the main program of the super-cycle (but must ensure that the program in the sup
To Search:
- [keyboarscancode] - Content of today' s notebook accessor
- [ASCIIscancode] - ASCII scan code
- [PCMouse] - PS2 keyboard interface program, 51 SCM,
- [C51_PS2] - Microprocessor standard PC, PS2 keyboard
- [HID] - All full keyboard scan code, very detail
File list (Check if you may need any files):
PS2键盘支持库\RD_KeyBoard_PS2.c
.............\RD_KeyBoard_PS2.h
.............\readme.txt
PS2键盘支持库