I can't overcome the line
Code: Select all
While (USBDev_GetdeviceState() <> _USB_DEV_STATE_CONFIGURED)
wend
The device is been detected and determined properly by Windows' Devices and Printers and by USBlizer...
Code: Select all
While (USBDev_GetdeviceState() <> _USB_DEV_STATE_CONFIGURED)
wend
Have you posted to the correct forum? Sorry I see you have, somehow I've ended up getting posts to the basic forum which I never use, I never had that happen before.Const50 wrote:Who has run the sample program HIDDevice_Custom?
I can't overcome the lineThe program hangs-up on this line.Code: Select all
While (USBDev_GetdeviceState() <> _USB_DEV_STATE_CONFIGURED) wend
The device is been detected and determined properly by Windows' Devices and Printers and by USBlizer...
Code: Select all
// Setting output frequency to 32MHz
OSCCON = 0x0000; // FRC ON
CLKDIV = 0x0000; // prescaler OFF
STEN_bit = 1; // USB correction ON
STSRC_bit = 1;
// Enable USB device interrupt
USB1IE_bit = 1;
USB1IP0_bit = 1;
USB1IP1_bit = 1;
USB1IP2_bit = 1;