PORTS Forum

Ports and Interfaces => USB => Topic started by: golubenko_d on July 15, 2015, 09:45:01 am

Title: PIC firmware for winusb_cs_30
Post by: golubenko_d on July 15, 2015, 09:45:01 am
I did not find PIC firmware for winusb_cs_30 on site.
Make yourself so failed
Thanks.
Title: Re: PIC firmware for winusb_cs_30
Post by: Jan Axelson on July 15, 2015, 10:06:49 am
There is example PIC firmware for WinUSB here:

http://janaxelson.com/winusb.htm

The examples Microchip provides are also a good starting point.
Title: Re: PIC firmware for winusb_cs_30
Post by: golubenko_d on July 15, 2015, 10:22:29 am
In winusb_cs_30 used ProductID = "1518";
In last PIC firmware (device-winusb_lvr.zip).
Used  ProductID 0х150C
I think there is a newer version of the firmware.
I want to work with isochronous transfers, but...
Title: Re: PIC firmware for winusb_cs_30
Post by: golubenko_d on July 16, 2015, 01:43:01 am
I found a bug in my code. USB_HANDSHAKE_DISABLED in ISO
   
Code: [Select]
//Enable the application data endpoint(s)
    USBEnableEndpoint(USBGEN_BULK_EP_NUM,USB_OUT_ENABLED|USB_IN_ENABLED|USB_HANDSHAKE_ENABLED|USB_DISALLOW_SETUP);
    USBEnableEndpoint(USBGEN_INTERRUPT_EP_NUM,USB_OUT_ENABLED|USB_IN_ENABLED|USB_HANDSHAKE_ENABLED|USB_DISALLOW_SETUP);
    USBEnableEndpoint(USBGEN_ISO_EP_NUM,USB_OUT_ENABLED|USB_IN_ENABLED|USB_HANDSHAKE_DISABLED|USB_DISALLOW_SETUP);

Title: Re: PIC firmware for winusb_cs_30
Post by: Jan Axelson on July 16, 2015, 10:16:01 am
Of course you can change the Vendor ID and Product ID to whatever values you need.