I'm using a PIC18F4550 as generic HID, took a while until it was recognized by WinXP. But it works now as it should. The device is bus-powered only. And this is still my aim, I want to avoid any external power source.
My problem though is, that I wrote some a/d-conversion and I2C-Display output beforehand. When I insert these functions to the generic HID firmware which I got from Jan Axelson, my I2C-Display won't display anything. USB communication still works. I can send reports to the device and the device reports the sent bytes back to the PC. I would like to know if there could be something in the generic HID firmware code which interferes with my code for a/d conversion and I2C communication.
I2C-Code (config): OpenI2C(MASTER, SLEW_ON); // hat FUNKTIONIERT! (ohne US // OpenI2C(MASTER, SLEW_OFF); // Slew rate disabled for 100 kHz mode - passt eher zu SSPADD-Wert (49) // SSPADD = FOSC / (4 * SCL) -1 //400 kHz (385 kHz) Baud clock(12, 0Ch) @ 20 MHz //100 kHz Baud clock(49, 31h) @20 MHz SSPADD = 49;
Any hints on that would be appriciated. Thanks to everyone in advance. Keep developing 
Cheers, Marcus
|