Explain why MickroC pic18f4550 HID example works
- by Dr Deo
MickroC compiler has a library for HID(Human Interface Device) usb communication. In the supplied samples, they specify that the buffers below should be in USB ram and use a pic18f4550.
unsigned char readbuff[64] absolute 0x500; // Buffers should be in USB RAM, please consult datasheet
unsigned char writebuff[64] absolute 0x540;
But the pic18f4550 datasheet says USB ram ranges from 400h to 4FFh
So why does their example work when their buffers appear not to be between 400h to 4FFh?
Link to full source