Go to GlobalSpec.com Home
Alert   Product Alerts
Keep current on the latest products, new suppliers, and technical articles of interest to you. (See Topics)

Using a USB Flash Drive with an Embedded Host

From Microchip Technology, Inc.
 

 

AN1145 Using a USB Flash Drive with an Embedded Host THE DATA LOGGER APPLICATION Author: Kim Otten Microchip Technology Inc. This application stores two types of data: * Low data rate monitoring. This is done by polling the on-board potentiometer approximately once INTRODUCTION per second. The potentiometer reading and time USB Flash drives are a popular, simple and inexpensive and date stamp of the reading are saved to a file method of moving data from one PC to another. Their on the Flash drive. use in the embedded market has been limited, however, * Higher speed time measurement accuracy. This is due to the requirement that a system must have USB done by reading the temperature sensor every host capability to communicate with a Flash drive. 10 ms. The temperature reading and the count of In the past, this usually meant that the system needed to elapsed milliseconds are saved to a file on the ® be a PC. However, the introduction of Microchip's PIC Flash drive. microcontrollers with USB embedded host capability The application also provides a set of simple means that embedded systems can now take advantage commands to interface to the Flash drive (via a serial of this popular portable media. With the ability to store terminal interface) and directly manipulate files on the data to a USB Flash drive, a PIC microcontroller-based Flash drive. application now has virtually unlimited data storage. This application note demonstrates a data logger appli- Installing the Stack cation that can run on the Explorer 16 Demo Board with The USB data logger application is available as part ofthe USB PICtail™ Plus Daughter Board. It implements a Microchip's complete USB Embedded Host Support file system with a simple, but powerful, set of commands. Package (see Appendix A: "Software Discussed in this Application Note" for more details). To install all A Note About USB Flash Drives the necessary project files on a host PC, download the USB Flash drives come in a wide variety of shapes and installation file from the Microchip web site and run the sizes. Many of the Flash drives, with up to 2 GB of mem- executable installer file. By default, the project and ory, utilize the FAT16 file system and a Small Computer Stack files will be installed in the directory structure System Interface (SCSI) command interface. Microchip shown in Figure 1. Application Note AN1045, "Implementing File I/O Func- tions Using Microchip's Memory Disk Drive File System Library" (DS01045), describes an implementation of this file system. Note: Flash drives with more than 2 GB of mem- ory utilize the FAT32 file system, which is not supported by AN1045.


Product Announcements
ROHM Semiconductor, USA LLC - ROHM’s Audio System LSI Solution
ROHM's BU9432-C1 and BU9434-C2 audio system LSIs integrate a USB 2.0 full-speed host controller, a 3-channel power supply, an MP3 decoder, a DAC, and a system controller into a single chip, allowing... (read more)
Sealevel Systems, Inc. - Adapter Kits Improve Functionality of PC/104 Stack
Product Highlights • Easier to include CompactFlash memory, 2.5" hard drives, and other common devices • CompactFlash adapter supports Type I and II memory cards and IBM Microdrives via... (read more)
GE Fanuc Intelligent Platforms - Intelligent High-Performance Packet Processor
The WANic™ 56511 is an intelligent, high performance Packet Processor based on the OCTEON™ Plus multi-core processor. Ideal for IP communications networks, the WANic packet processor can... (read more)
Microchip Technology, Inc. - MASTERs Conference 2009
The MASTERs Conference is 3 days of technical training for embedded systems design engineers. The numerous topics are taught by Microchip product developers and technical experts. (read more)
Atmel Corporation - AVR MCUs Combine USB, Battery Charging and Analog
New AVR® microcontrollers combine USB controller and high performance analog features. The ATmega16U4 and ATmega32U4 reduce system cost in battery powered devices such as gaming accessories. (read more)
Dewetron, Inc. - DEWE-211 Dynamic Data Logger
The DEWE-211 is an impressive high-performance DYNAMIC data logger. An internal 32 GB Flash-disk stores acquired data at rates up to 40 MB/s. A rugged, all-metal PC instrument with high quality signal... (read more)

Topics of Interest
AN1140 USB Embedded Host Stack Most USB peripheral devices are divided into Author: Kim Otten categories, called classes. Each class has special Microchip Technology Inc. requirements regarding its... (Read More)
AN1169 USB Mass Storage Class on an Embedded Device FEATURES Author: Sean Justice Microchip Technology Inc. This application note provides key components of an MSD device function driver. The... (Read More)
AN1045 Implementing File I/O Functions Using Microchip's Memory Disk Drive File System Library have two electrically determined signals, card detect Author: Peter Reen and write-protect, that allow... (Read More)
AN1141 USB Embedded Host Stack Programmer's Guide FEATURES Author: Bud Caldwell Microchip Technology Inc. * Supports USB embedded host applications * Handles device enumeration and configuration *... (Read More)
The Universal Serial Bus (USB) is a simple and common interface for connecting peripheral devices to a personal computer or other host. To harness its flexibility and power with minimal effort,... (Read More)