Darrel,
I try your DT_HID260, and it work on first attempt. It's very simple to use.
But I have question.
If I want to use 64 byte, #define USB_EP0_BUFF_SIZE should be 64, is that correct?
Thanks
Darrel,
I try your DT_HID260, and it work on first attempt. It's very simple to use.
But I have question.
If I want to use 64 byte, #define USB_EP0_BUFF_SIZE should be 64, is that correct?
Thanks
No, endpoint 0 is for setup and control transfers. You should not change that.
And you should not change anything inside the DT_HID260.pbp file.
Set the report sizes with the defines...
Code:;--- Setup USB ------------------------------------------------------------- INCLUDE "DT_HID260.pbp" DEFINE USB_VENDORID 6017 DEFINE USB_PRODUCTID 2000 DEFINE USB_VERSION 1 DEFINE USB_VENDORNAME "Darrel Taylor" DEFINE USB_PRODUCTNAME "DT_HID" DEFINE USB_SERIAL "001" DEFINE USB_INSIZE 64 ; IN report is PIC to PC (8,16,32,64) DEFINE USB_OUTSIZE 16 ; OUT report is PC to PIC DEFINE USB_POLLIN 10 ; Polling times in mS, MIN=1 MAX=10 DEFINE USB_POLLOUT 10
DT
Ok. Everything working fine.
Thanks again.
Here is my template. Maybe it will be useful for someone.
Application for PC is done in VB6. Screen shot:
PBP & VB6 files:
DT_HID260 Template.zip
If knobs doesn't appear in vbForm, you need to add it in components.
Bookmarks