Keil Logo

USB Data Logger

The USB Data Logger template application shows how to record analog and digital data on an attached MicroSD card. To read the data on a PC, the application implements a composite USB device supporting the Human Interface Device (HID) and Mass Storage Class (MSC). The HID class enables the application to be controlled via a PC based application to start and stopp the recording of the data. These middleware components are used:

  • USB for communication with the PC
  • File System for data storage on the MicroSD card

For the USB communication with the PC, a USB CMSIS-Driver is required, whereas the MicroSD card is connected to the application via an SPI CMSIS-Driver.
This video explains some of the application's details:


Data Logger

 Download The application note explains the required steps to create the USB data logger project on an XMC4500 Relax Kit. It contains in-depth instructions and all the required code snippets.

This application consists of seven easy steps that are explained in application note 273. The following table gives you direct access to each step:

Step   Description
Create a Project PDF Create a new project for the XMC4500 Relax Kit with initialization files and the main module. Setup the debugger.
Add CMSIS-RTOS Thread and Timer PDF Add and configure CMSIS-RTOS Thread and Timer. Debug with Kernel awareness.
Add Interfaces to the Board Components PDF Add Interfaces to the Board Components such as LED, A/D converter, and push buttons.
Add File System Support PDF Add the File System component to the project and configure the SPI pins for the CMSIS-Driver, as well as stack and thread memory resources.
Add the USB device classes PDF Add the USB components to the project and configure them. USB template files help to implement the code.
Implement the Data Logger Functions PDF Implement a real time clock for creating timestapms for the data. Add user and USB command handling code.
Improve Data Recording Operations PDF Improve Data Recording Operations to make the application more robust.
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.