USB Library
Host - Mass Storage - Thumb Drive Data Logger

Supported Demo Boards 

The matrix of which demos are supported on a specific board can be found in the Release Notes demo board support section. Verify that the board you wish to use will work with this demo. This table also describes some of the limitations that the board might have while running this demo. 

Demo Board I/O Mapping 

Each demo board has a different number of push buttons, LEDs, and other features with various different names for these components. To determine which board features are used for which demo features, please refer to the io_mapping.h file in the demo folder under the system_config folder. Each demo board will have a corresponding folder with an io_mapping.h file in it. For example, for the PIC24FJ256GB110 PIM for the Explorer 16, this would be the following file: 

<install_directory>/apps/usb/host/msd_data_logger/firmware/src/system_config/exp16/pic24fj256gb110_pim/io_mapping.h 

For more information about each demo board, please refer to the Demo Board Information section

Demo Operation 

This demo will cause the host to start logging the potentiometer data to a thumb drive once the drive is plugged into the board. An LED will blink indicating that the data is being logged to the file. Press the pushbutton on the board to stop the logging to the file. If the drive has an activity LED, wait for it to stop blinking. If it doesn't, wait a few seconds for the write to complete before removing the drive.

NOTE: remove the drive without stopping the write first by pressing the button can result in corrupted or missing data. 
MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla