ps2 function not working
ps2 function not working
I tried to execute the example for the ps2 and there is no response any one tried that
Re: ps2 function not working
The example works here. Be sure to:
- - Have the right crystal, or recompile for the one you have. The example for PIC18's is built for the 20 MHz crystal, and for PIC16's for 16MHz. The crystal must be 6 MHz or higher.
- Have the right pinout (as written in Help).
- Pull-up PORTD (this should have been written in example comment, but I have somehow ommitted it - will correct it for the next version )
pizon
One more thing: Since PS/2 uses only 2 pins, it's a good candidate for "crippled" ports, such as PORTE on P16F877A and P18F452. If you do this, be sure to initialize the port properly, as digital I/O. In the abovementioned case, it means
Code: Select all
ADCON = 7;
pizon