NXP Semiconductors
For more details about this board, see
3.1 USB stack configurations
3.1.1 Enable/disable dual USB ports
To switch between USB0 (FS) and USB1 (HS). Change the macro in
• To enable/disable USB1, change
• To enable/disable USB0, change
3.2 Hardware connection
• For USB0 (FS) demo, connect P10 to PC.
• For USB1 (HS) demo, connect P9 to PC.
• To download and debug firmware, connect P6 to PC.
• If you have three USB cables, it is OK to connect all three USB connectors to PC.
• Suggest connecting USB port to PC USB port directly, not via USB hub.
3.3 USB device example
3.3.1 HID mouse example
Demo project location:
\boards\lpcxpresso55s69\usb_examples\usb_device_hid_mouse
The HID transfer interval is controlled in the
For FS/LS interrupt endpoints, the value of this field may be from 1 to 255.
• Change the
FS_HID_MOUSE_INTERRUPT_IN_INTERVAL
For example:
#define FS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x02U)
Change the FS HID transfer interval to 2 ms.
For HS interrupt endpoints, the
1 to 16.
• Change
HS_HID_MOUSE_INTERRUPT_IN_INTERVAL
For Example, a
bInterval
#define HS_HID_MOUSE_INTERRUPT_IN_INTERVAL (0x06U) /* 2^(6-1) = 4ms */
Change the high-speed HID transfer interval to 4 ms.
If the
value changes, the mouse movement speed changes too. Also, when using HS ports, you can configure to
bInterval
1 to reach 125 us frame interval.
bInterval
• For FS ports, the minimum frame interval is 1 ms.
• For HS ports, the minimum frame interval is 125 us.
See Example on USB gaming mouse for details.
Introduction to Dual USB port on LPC5500/LPC54600 Series, Rev. 0, 11 November 2011
Application Note
Getting Started with the LPC55S69-EVK Evaluation
USB_DEVICE_CONFIG_LPCIP3511HS
USB_DEVICE_CONFIG_LPCIP3511FS
filed in the endpoint descriptor.
bInterval
value in
value is used as the exponent for a 2 ^(bInterval-1) value. This value must be from
bInterval
value in
of 6 means a period of (2^(6-1)) = 32 *125 us = 4 ms.
Getting started with USB demo with SDK
usb_device_config.h
to 1/0.
to 1/0.
usb_device_descriptor.h
.
usb_device_descriptor.h
Board.
.
.
8 / 13
Need help?
Do you have a question about the LPC5500 Series and is the answer not in the manual?
Questions and answers