hi all, i am the student of jose miguel who meet the problem to the device detection.
describe of the problem:
I work with the framework of microchip USB CUSTOM DEVICE, the USB POWER SENSE I/O is realize on RB4 on my board, the capacitor of 470nF on Vusb is good, we have controlled all the ground= no problem.
In HardwareProfile i have defined :
//The PICDEM FS USB Demo Board platform supports the USE_SELF_POWER_SENSE_IO
//and USE_USB_BUS_SENSE_IO features. Uncomment the below line(s) if
//it is desireable to use one or both of the features.
#define USE_SELF_POWER_SENSE_IO
#define tris_self_power TRISBbits.TRISB4 // Input
#if defined(USE_SELF_POWER_SENSE_IO)
#define self_power PORTBbits.RB4
#else
#define self_power 1
#endif
In the main.c, i have just remove the subroutines:
void BlinkUSBStatus(void);
BOOL Switch2IsPressed(void);
BOOL Switch3IsPressed(void);
WORD_VAL ReadPOT(void);
I don't have modified the usb_config and the usb_descriptor because i don't know wich modified parameters.
There are no problem for program the PIC with the ICD3, but USBdeviceSTATE is always =0x04 when the the program is stopped and =0x00 (detached state???) when the program run in debugger mode.
The host not detect the board also after a reset.
I can send to you my schematic and my code if you send me your email :
bastien343085844@aol.com
Sorry for my english, no very good...
Thank you for your help