PS/2 communication Microchip PIC16F716

My problem is as follows: I have a PIC16F716, a computer and a barcode scanner. The protocol on which they will communicate is PS/2. The barcode scanner, when used, scans the same barcode over an over again in less than a second. I want to use this PIC model to interface the barcode scanner and eliminate this issue, by writing a program in C for the PIC.
The program will retain the last code received, and compare it to the new one. If they are the same, it will do nothing. But if they are different, the PIC will be instructed to send the received code to the computer via PS/2. I am interested in how to set the oscillator mode and how to access the pins and memory of the PIC using C code. I would also need to know how to set a logic
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!