Hello!
I have interfaced USB connector to PIC18F4550. I will be connecting USB keyboard to PIC. I want to know how to read keyboard using PIC.
Thanks
Jayanth D
the PIC18F4550 supports USB device functionality (e.g. you can connect it to a PC host)
it does not support USB embedded host functionality which you would need to connect a USB keyboard, see
**broken link removed**
possibly you could use a USB to PS/2 or serial converter ?
You can write your own code for PS/2 functions, otherwise MikroC for PIC16/18 has inbuilt library for PS/2; check it's help.
You can assign I/O pins of PIC for PS/2 clock and data lines; and connect a PS/2 keyboard there. Library functions are there to configure pins and read incoming data.
Help of MicroC for PIC shows a sample program and hardware connection.