Author Topic: PIC firmware for winusb_cs_30  (Read 10574 times)

golubenko_d

  • Member
  • ***
  • Posts: 3
PIC firmware for winusb_cs_30
« 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.

Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: PIC firmware for winusb_cs_30
« Reply #1 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.

golubenko_d

  • Member
  • ***
  • Posts: 3
Re: PIC firmware for winusb_cs_30
« Reply #2 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...
« Last Edit: July 15, 2015, 10:48:19 am by golubenko_d »

golubenko_d

  • Member
  • ***
  • Posts: 3
Re: PIC firmware for winusb_cs_30
« Reply #3 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);


Jan Axelson

  • Administrator
  • Frequent Contributor
  • *****
  • Posts: 3033
    • Lakeview Research
Re: PIC firmware for winusb_cs_30
« Reply #4 on: July 16, 2015, 10:16:01 am »
Of course you can change the Vendor ID and Product ID to whatever values you need.