
Originally Posted by
skimask
Not really sure if this has anything to do with your problem...
http://www.beyondlogic.org/keyboard/keybrd.htm
Looks to me like you you're on the right track...just not all the way there yet.
You've told the PC that you've pressed the 'q' key, but you haven't told the PC that you've released it, therefore, it repeats.
The first paragraph of the link above has some good info in it on the whole keyboard theory...should give you all the answers you need.
I can't seem to get the USB to work with PIC18F4550 using the KBDDESC.ASM
I keep getting USB error if i plug in the PIC.
Code:
buffer Var Byte[8]
loopcnt Var Byte
state Var Byte
Define OSC 48
Pause 10
USBInit
buffer[0] = 0
buffer[1] = 0
buffer[2] = 0
buffer[3] = 0
buffer[4] = 0
buffer[5] = 0
buffer[6] = 0
buffer[7] = 0
movecursor:
buffer[0] = 0
buffer[1] = 0
buffer[2] = $14
buffer[3] = 0
endgame:
USBService ' Must service USB regularly
USBOut 1, buffer, 8, endgame ' Send buffer to endpoint 1
while(1)
wend
Goto movecursor ' Do it forever
Anyone knows what is wrong ?
Bookmarks