完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用的是PICF1825K50,带有M堆栈。我正在尝试创建一个触摸屏设备。它有三个接口。该设备成为USB复合设备。我可以看到配置,看起来是正确的。然而,未显示描述符。一旦我插入它,3个接口中的一个就显示出适当的描述符。现在它们都没有显示出来。我已经看了这些天了,并没有看到任何错误的描述符,这是我认为错误的地方。你们谁能看出我做错了什么?谢谢。
以上来自于百度翻译 以下为原文 I'm using a picf1825k50, with m-stack. I'm trying to create a touch screen device. It has three interfaces. The device comes up as USB Composite Device. I can see the configuration, which looks correct. However the descriptors are not shown. Once when I plugged it in, one of the 3 interfaces showed the proper descriptor. Now none of them are shown. I've been looking at these for days, and don't see anything wrong with the Descriptors, which is where I think the error is. Can any of you see what I'm doing wrong? Thanks. struct configuration_1_packet { struct configuration_descriptor config; struct interface_descriptor interface; struct hid_descriptor hid; struct endpoint_descriptor ep; struct interface_descriptor interface2; struct hid_descriptor hid2; struct endpoint_descriptor ep2; struct endpoint_descriptor ep2_out; struct interface_descriptor interface3; struct hid_descriptor hid3; struct endpoint_descriptor ep3; }; /* Device Descriptor * * Each device has a single device descriptor describing the device. The * format is described in Chapter 9 of the USB specification from u***.org. * USB_DEVICE_DESCRIPTOR needs to be defined to the name of this object in * u***_config.h. For more information, see USB_DEVICE_DESCRIPTOR in u***.h. */ const ROMPTR struct device_descriptor this_device_descriptor = { sizeof(struct device_descriptor), // bLength DESC_DEVICE, // bDescriptorType 0x0200, // 0x0200 = USB 2.0, 0x0110 = USB 1.1 0x00, // Device class 0x00, // Device Subclass 0x00, // Protocol. EP_0_LEN, // bMaxPacketSize0 0x2965, // Vendor 0x5041, // Product 5023 is the actual kortek module we use 0x0100, // device release (1.0) 1, // Manufacturer 2, // Product 3, // Serial 1 // NumConfigurations }; static const ROMPTR struct configuration_1_packet configuration_1 = { { // Members from struct configuration_descriptor sizeof(struct configuration_descriptor), 0x02,//Configuration Descriptor bDescriptorType sizeof(configuration_1), // wTotalLength (length of the whole packet) 3, // bNumInterfaces 1, // bConfigurationValue 0, // iConfiguration (index of string descriptor) 0b10100000,//bmAttributes 100/2, // 100/2 indicates 100mA }, { // Members from struct interface_descriptor sizeof(struct interface_descriptor), // bLength; 0x04,//Descriptor Type 0x00, // InterfaceNumber 0x00, // AlternateSetting 0x01, // bNumEndpoints (num besides endpoint 0) 0x03, // bInterfaceClass 3=HID, 0xFF=VendorDefined 0x00, // bInterfaceSubclass (0=NoBootInterface for HID) 0x00, // bInterfaceProtocol 0x04, // iInterface (index of string describing interface) }, { // Members from struct hid_descriptor sizeof(struct hid_descriptor), 0x21, 0x0110, // bcdHID 0x0, // bCountryCode 1, // bNumDescriptors 0x22, // bDescriptorType2 sizeof(mouse_report_descriptor), // wDescriptorLength supposed to be 22F }, { // Members of the Endpoint Descriptor (EP1 IN) sizeof(struct endpoint_descriptor), 0x05, //bDescriptorType Endpoint 0x84, // endpoint #1 0x80=IN 0b00000011, // bmAttributes EP_1_IN_LEN, // wMaxPacketSize 1, // bInterval in ms. }, /* Second Interface */ { // Members from struct interface_descriptor sizeof(struct interface_descriptor), // bLength; 0x04, //Interface 0x01, // InterfaceNumber 0x00, // AlternateSetting 0x02, // bNumEndpoints (num besides endpoint 0) 0x03, // bInterfaceClass 3=HID, 0xFF=VendorDefined 0x00, // bInterfaceSubclass (0=NoBootInterface for HID) 0x00, // bInterfaceProtocol 0x05, // iInterface (index of string describing interface) }, { // Members from struct hid_descriptor sizeof(struct hid_descriptor), 0x21, //bDescriptorType HID 0x0110, // bcdHID 0x00, // bCountryCode 1, // bNumDescriptors 0x22, // bDescriptorType2 sizeof(mouse_report_descriptor_1), // wDescriptorLength supposed to be 27Bytes }, { // Members of the Endpoint Descriptor (EP1 OUT) sizeof(struct endpoint_descriptor), 0x05, //bDescriptorType Endpoint 0x85 /*| 0x00*/, // endpoint #1 0x00=OUT 0b00000011, // bmAttributes EP_1_OUT_LEN, // wMaxPacketSize 1, // bInterval in ms. }, { // Members of the Endpoint Descriptor (EP1 IN) sizeof(struct endpoint_descriptor), 0x05,//bDescriptorType Endpoint 0x05, // endpoint #1 0x80=IN 0b00000011, // bmAttributes EP_2_IN_LEN, // wMaxPacketSize 1, // bInterval in ms. }, /* Third Interface */ { // Members from struct interface_descriptor sizeof(struct interface_descriptor), // bLength; 0x04, //bDescriptorType Interface 0x02, // InterfaceNumber 0x00, // AlternateSetting 0x01, // bNumEndpoints (num besides endpoint 0) 0x03, // bInterfaceClass 3=HID, 0xFF=VendorDefined 0x00, // bInterfaceSubclass (0=NoBootInterface for HID) 0x02, // bInterfaceProtocol 0x06, // iInterface (index of string describing interface) }, { // Members from struct hid_descriptor sizeof(struct hid_descriptor), 0x21, //bDescriptorType HID 0x0110, // bcdHID 0x00, // bCountryCode 0x01, // bNumDescriptors 0x22, // bDescriptorType Report sizeof(mouse_report_descriptor_2), // wDescriptorLength supposed to be 56bytes }, { // Members of the Endpoint Descriptor (EP1 OUT) sizeof(struct endpoint_descriptor), 0x05, //bDescriptorType Endpoint 0x83, // endpoint #1 0x00=OUT 0b00000011, // bmAttributes EP_2_OUT_LEN, // wMaxPacketSize 1, // bInterval in ms. }, }; static const ROMPTR uint8_t mouse_report_descriptor[] ={ 0x5,0x0D,//Usage Page (Digitizer) 0x9,0x4,//Usage (Touch Screen) 0xA1,0x1,//Collection (Application) 0x85,0x73,// Report ID (115) 0x9,0x54,// Usage (Contact Count) 0x15,0x0,// Logical Minimum (0) 0x25,0x1F,// Logical Maximum (31) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x22,// Usage (Finger) 0xA1,0x2,// Collection (Logical) 0x9,0x51,// Usage (Contact Identifier) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x42,// Usage (Tip Switch) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x75,0x6,// Report Size (6) 0x95,0x1,// Report Count (1) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0xC0,// End Collection 0x9,0x22,// Usage (Finger) 0xA1,0x2,// Collection (Logical) 0x9,0x51,// Usage (Contact Identifier) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x42,// Usage (Tip Switch) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x75,0x6,// Report Size (6) 0x95,0x1,// Report Count (1) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0xC0,// End Collection 0x9,0x22,// Usage (Finger) 0xA1,0x2,// Collection (Logical) 0x9,0x51,// Usage (Contact Identifier) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x42,// Usage (Tip Switch) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x75,0x6,// Report Size (6) 0x95,0x1,// Report Count (1 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0xC0,// End 0x9,0x22,// Usage (Finger) 0xA1,0x2,// Collection (Logical) 0x9,0x51,// Usage (Contact Identifier) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x42,// Usage (Tip Switch) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x75,0x6,// Report Size (6) 0x95,0x1,// Report Count (1) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0xC0,// End Collection 0x9,0x22,// Usage (Finger) 0xA1,0x2,// Collection (Logical) 0x9,0x51,// Usage (Contact Identifier) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x42,// Usage (Tip Switch) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x75,0x6,// Report Size (6) 0x95,0x1,// Report Count (1) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0xC0,// End Collection 0x5,0x0D,// Usage Page (Digitizer) 0x15,0x0,// Logical Minimum (0) 0x27,0xFF,0xFF,0x0,// Logical Maximum (65535) 0x55,0x0C,// Unit Exponent (-4) 0x66,0x1,0x10,// Unit (SI Lin: Time (s)) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x56,// Usage (Scan Time) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x85,0x74,// Report ID (116) 0x9,0x55,// Usage (Contact Count Maximum) 0x15,0x0,// Logical Minimum (0) 0x25,0x1F,// Logical Maximum (31) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0xB1,0x2,// Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 0x85,0x75,// Report ID (117) 0x6,0x0,0xFF,// Usage Page (Vendor-Defined 1) 0x9,0xC5,// Usage (Vendor-Defined 197) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x96,0x0,0x1,// Report Count (256) 0xB1,0x2,// Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 0xC0,//End Collection 0x5,0x0D,//Usage Page (Digitizer) 0x9,0x0,//Usage (Undefined) 0xA1,0x1,//Collection (Application) 0x85,0x77,// Report ID (119) 0x9,0x20,// Usage (Stylus) 0xA1,0x2,// Collection (Logical) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x1,// Report Count (1) 0x9,0x42,// Usage (Tip Switch) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x32,// Usage (In Range) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x44,// Usage (Barrel Switch) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x45,// Usage (Eraser) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x95,0x4,// Report Count (4) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x55,0x0,// Unit Exponent (0) 0x65,0x11,// Unit (SI Lin: Length (cm)) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x1,// Report Count (1) 0x9,0x30,// Usage (X) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x31,// Usage (Y) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x0D,// Usage Page (Digitizer) 0x9,0x30,// Usage (Tip Pressure) 0x15,0x1,// Logical Minimum (1) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x1,// Report Count (1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0xC0,// End Collection 0xC0,//End Collection 0x5,0x0D,//Usage Page (Digitizer) 0x9,0x0E,//Usage (Configuration) 0xA1,0x1,//Collection (Application) 0x85,0x71,// Report ID (113) 0x9,0x23,// Usage (Device Settings) 0xA1,0x2,// Collection (Logical) 0x9,0x52,// Usage (Device Mode) 0x9,0x53,// Usage (Device Identifier) 0x15,0x0,// Logical Minimum (0) 0x25,0x0A,// Logical Maximum (10) 0x75,0x8,// Report Size (8) 0x95,0x2,// Report Count (2) 0xB1,0x2,// Feature (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 0xC0,// End Collection 0xC0//End Collection }; static const ROMPTR uint8_t mouse_report_descriptor_1[]={ 0x6,0x0,0xFF,//Usage Page (Vendor-Defined 1) 0x9,0x1,//Usage (Vendor-Defined 1) 0xA1,0x1,//Collection (Application) 0x85,0x76,// Report ID (118) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0,// Logical Maximum (255) 0x75,0x8,// Report Size (8) 0x95,0x3F,// Report Count (63) 0x9,0x1,// Usage (Vendor-Defined 1) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x9,0x1,// Usage (Vendor-Defined 1) 0x91,0x2,// Output (Data,Var,Abs,NWrp,Lin,Pref,NNul,NVol,Bit) 0xc0 }; static const ROMPTR uint8_t mouse_report_descriptor_2[]={ 0x5,0x01,//Usage Page (Generic Desktop) 0x9,0x02,//Usage (Mouse) 0xA1,0x1,//Collection (Application) 0x85,0x72,// Report ID (114) 0x9,0x1,// Usage (Pointer) 0xA1,0x0,// Collection (Physical) 0x5,0x9,// Usage Page (Button) 0x19,0x1,// Usage Minimum (Button 1) 0x29,0x2,// Usage Maximum (Button 2) 0x15,0x0,// Logical Minimum (0) 0x25,0x1,// Logical Maximum (1) 0x75,0x1,// Report Size (1) 0x95,0x2,// Report Count (2) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x95,0x6,// Report Count (6) 0x81,0x3,// Input (Cnst,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0x5,0x1,// Usage Page (Generic Desktop) 0x9,0x30,// Usage (X) 0x9,0x31,// Usage (Y) 0x15,0x0,// Logical Minimum (0) 0x26,0xFF,0x0F,// Logical Maximum (4095) 0x35,0x0,// Physical Minimum (0) 0x46,0xFF,0x0F,// Physical Maximum (4095) 0x75,0x10,// Report Size (16) 0x95,0x2,// Report Count (2) 0x81,0x2,// Input (Data,Var,Abs,NWrp,Lin,Pref,NNul,Bit) 0xC0,// End Collection 0xC0,//End Collection }; |
|
相关推荐
6个回答
|
|
我似乎找不到一个“PICF1825K50”设备?“M堆栈”可能是什么?
以上来自于百度翻译 以下为原文 I can not seem to find a "picf1825k50" device ? What might a "m-stack" be ? |
|
|
|
抱歉意味着它是APIC18F25K50./HTTPS://www. DigiKi.com /Studio DeLiLe/Eng/McCHIP-Tealy/PIC18F25K50-i-SP/PIC18F25K50-i-SP-ND/367150 2M堆栈,是USB库,我使用。
以上来自于百度翻译 以下为原文 Sorry meant it's a pic18f25k50. https://www.digikey.com/product-detail/en/microchip-technology/PIC18F25K50-I-SP/PIC18F25K50-I-SP-ND/3671502 M-Stack is the USB library I'm using. http://www.signal11.us/oss/m-stack/ |
|
|
|
我看不到在支持的硬件下提到这个处理器。单元测试示例是否工作?
以上来自于百度翻译 以下为原文 I see no mention of this processor under supported hardware. Does the Unit Test Example work Attached Image(s) |
|
|
|
是的,我有鼠标演示。然后我修改它做触摸屏。实际上,我使用的是PuloLp星板。HTTPS://www-PopuluCOM/Tufft/3156/Realts几乎可以工作。Windows查看设备,并列出3个接口,并有适当的名称。然后,它将删除名称,如果我去属性,它会声明设备没有启动。
以上来自于百度翻译 以下为原文 Yes I had the mouse demo working. Then I modified it for doing a touch screen. I'm actually using the pololu p-star board. https://www.pololu.com/product/3156/resources It almost works. Windows see the device, and will list the 3 interfaces, with the proper names. Then it will remove the names, and if I go to properties, it will state the device did not start. |
|
|
|
嗨,也许你应该试试Microchip官方USB堆栈:HTTP://www. MicroPC.COM/MLA.有很多例子,包括PIC18F45 K50,这对于PIC18F25K50很容易修改。
以上来自于百度翻译 以下为原文 Hi, Maybe you should try Microchip official USB stack : http://www.microchip.com/MLA there are lots of examples including for the PIC18F45K50 which is easy to modify for PIC18F25K50. Regards |
|
|
|
是的,我做了鼠标演示。然后,我修改了它做触摸屏。实际上,我使用的是Pullu P-星板。& Hbf=“http://www. Pullul.com /产品/ 3156 /资源”& gt;http://www. Poplu.com /Pr..es & lt;/a & gt;& nbsp;它几乎工作。Windows查看该设备,并将列出3个接口,并使用适当的名称。然后,它将删除名称,并且如果我进入属性,它将声明设备没有启动。
以上来自于百度翻译 以下为原文 Yes I had the mouse demo working. Then I modified it for doing a touch screen. I'm actually using the pololu p-star board. https://www.pololu.com/pr...es It almost works. Windows see the device, and will list the 3 interfaces, with the proper names. Then it will remove the names, and if I go to properties, it will state the device did not start. |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
729浏览 1评论
613浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
503浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
628浏览 0评论
526浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 13:19 , Processed in 1.378932 second(s), Total 87, Slave 70 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号