Freescale Kinetis L Series KL2x and KL4x USB Stack Application Note

This application note describes the Freescale USB Stack for Kinetis L series KL2x/KL4x devices and shows how to create a HID joystick demo.


Freescale Kinetis L Series KL2x and KL4x USB Stack Application Note - cover page
Brand
Freescale
Category
Other device
Document type
Application Note
Language
English
Pages
25
File format
PDF
File size
468 KB
Published
07 October, 2026
Updated
07 October, 2026
MD5 checksum
7D51AAD33588DEDD130CAF0011C34565

About this manual

The document introduces the USB protocol and the features of the Kinetis L USB OTG controller, which integrates a full‑speed USB controller into cost‑effective, low‑power microcontrollers. It explains the Freescale USB Stack architecture, including the driver, class, and application layers, and provides details on the HID class implementation.

A step‑by‑step HID joystick demo is presented, with instructions for adding required files, callbacks, and driver initialization. The note also lists the source files included in the stack, describes macro configuration options, and references additional user guides for deeper information.

What's inside

  • Introduction
  • USB Overview
  • Kinetis L USB OTG Controller
  • Freescale USB Stack Architecture
  • HID Joystick Demo
  • Conclusion

Specifications

Supported USB speedFull Speed (12 Mbps)
Number of USB endpoints16 bidirectional endpoints
Full‑speed USB device rate12 Mbps

Frequently asked questions

What USB speed do Kinetis L devices support?

Kinetis L devices support the Full Speed USB rate of 12 Mbps.

How many USB endpoints are available on the Kinetis L OTG controller?

The controller provides 16 bidirectional endpoints.

How can I run the HID joystick demo?

Compile the demo project, then follow the steps in section 5.6: tilt the board left/right or forward/backward to move the joystick axes, pull the board to adjust throttle, and slide the E1 pad to select buttons.

Download PDF (468 KB)

More Freescale Manuals


View all Freescale manuals →