Page 1
µDRIVE-uSD-G1 USERS MANUAL Tiny “Disk Drive” Data Storage Module for Embedded Applications Based on micro-SD Memory Card Revision 1.0 4D Systems...
Page 2
In no event shall 4D Systems be liable to the buyer or to any third party for any indirect, incidental, special, consequential, punitive or exemplary damages (including without...
µDRIVE-uSD-G1 Table of contents Description Introduction Features Serial Command Set Command Protocol General Command Set 2.2.1 Version/Device Info Request Disk Drive Operation Command Set 2.3.1 initialise Disk Drive Memory Card 2.3.2 Read Sector Block Data 2.3.3 Write Sector Block Data 2.3.4 read Byte Data 2.3.5...
µDRIVE-uSD-G1 Description 1.1 Introduction µDRIVE-uSD-G1 is an extremely compact and an ideal companion module that can be easily interfaced to any microcontroller that requires a “Disk Drive” data storage system. Most microcontrollers are limited by the available onboard memory for those applications that require large volumes of data.
µDRIVE-uSD-G1 1.2 Features A general purpose data storage device with a simple serial interface that can interface to any microcontroller in a wide range of embedded applications. Ideal companion peripheral that can be used like a “Disk Drive” for your next embedded project.
µDRIVE-uSD-G1 Serial Command Set The data storage and retrieval takes place via the serial interface. With a handful of easy to learn commands that provide reads and writes of data blocks from a single byte in size to 512 bytes of sectors. The simplified command set also means that very low overheads are imposed on the host controller.
µDRIVE-uSD-G1 2.1 Command Protocol The following are each of the commands with the correct syntax. Please note that all command examples listed below are in hex (00hex). NOTE: When transmitting the command and data bytes to the µDRIVE, do not include any separators such as commas ‘,’...
µDRIVE-uSD-G1 2.3 Disk Drive Operation Command Set The following commands are related to Disk Drive operation and they are described in this section. The µDRIVE-uSD-G1 has an integrated micro-SD (µSD) memory card adaptor and can accept memory cards of any size from 64Mb up to 2Gig for data storage of any type.
µDRIVE-uSD-G1 2.3.1 initialise Disk Drive Memory Card (@i) Syntax : extCmd, cmd extCmd : 40hex, @ascii cmd : 69hex, i ascii Description : This command initialises the µSD memory card. The memory card is always initialised upon Power-Up or Reset cycle, if the card is present. If the card is inserted after the power up or a reset then this command must be used to initialise the card.
µDRIVE-uSD-G1 2.3.2 Read Sector Block Data (@R) Syntax : extCmd, cmd, SectorAddress(hi:mid:lo) extCmd : 40hex, @ascii cmd : 52hex, Rascii SectorAddress(hi:mid:lo): A 3 byte sector address. Sector Address range from 0 to 16,777,215 depending on the capacity of the card. Each sector is 512 bytes in size. There are 2048 sectors per every 1Mb of card memory.
µDRIVE-uSD-G1 2.3.3 Write Sector Block Data (@W) Syntax : extCmd, cmd, SectorAddress(hi:mid:lo), data(1), .. , data(512) extCmd : 40hex, @ascii cmd : 57hex, Wascii SectorAddress(hi:mid:lo): A 3 byte sector address. Sector Address range from 0 to 16,777,215 depending on the capacity of the memory card used in the module. Each sector is 512 bytes in size.
µDRIVE-uSD-G1 2.3.4 read Byte Data (@r) Syntax : extCmd, cmd extCmd : 40hex, @ascii cmd : 72hex, r ascii Description : This command provides a means of reading a single byte of data back from the µDRIVE. Before this command can be used, memory address location must be set using the Set Memory Address command.
µDRIVE-uSD-G1 2.3.5 write Byte Data (@w) Syntax : extCmd, cmd, data extCmd : 40hex, @ascii cmd : 77hex, w ascii data : 1 byte of memory card data. Description : This command allows writing single bytes of data to the µDRIVE. This is useful for writing small chunks of data at irregular intervals quickly.
µDRIVE-uSD-G1 2.4 Serial Interface (TTL) µDRIVE needs to be connected via a serial link to a host controller. The host uses this serial link to send commands to the module for data storage and retrieval. Use the signal pin-outs as well as the application example shown in the following section for correct connection to the host.
µDRIVE-uSD-G1 2.5 USB Interface µDRIVE can be interfaced to a PC using a standard USB cable and the 4D Systems micro-USB module (µUSB-MB5 or µUSB-CE5) as shown below. The micro-USB module (optional extra), simply connects to the µDRIVE 5 pin header and captures the USB data and converts it into serial TTL data.
µDRIVE-uSD-G1 2.6 Personality-module-micro-Code (PmmC) One of the important features of the µDRIVE module is the ability to upload its onboard GOLDELOX processor with a micro-Code firmware which allows the module to take on a new personality. This is referred to as Personality-module-micro-Code (PmmC). One of the greatest benefits is that it allows the module to be easily upgraded by the user at any time with PmmC files as further enhancements are made in the future.
µDRIVE-uSD-G1 3. Specifications µDRIVE-uSD-G1 has the following electrical specifications which must be adhered to at all times to prevent damage to the device. Symbol Characteristic Units Supply voltage 3.6* Current Deg C Operating temp Power-up delay * Due to characteristics of certain micro-SD memory cards, the µDRIVE module may require supply voltages greater than 4.0 Volts.
µDRIVE-uSD-G1 3.1 Host Interface & Pin-Outs Function +ve Power Supply input: 3.6 to 6.0 Volts D.C Serial Transmit Data Pin: 0 to 3.3 Volt signal levels. Serial Receive Data Pin: 0 to 3.3 Volt signal levels. -ve Power Supply input: connect to GND Reset Pin: Active Low pulse >...
µDRIVE-uSD-G1 3.3 Power-Up Reset When the µDRIVE-uSD-G1 module comes out of a power up reset, allow up to 400ms before attempting to communicate with the module. The power up sequence of events should be as follows: Allow 400ms after power-up or reset for µDRIVE-uSD-G1 to settle.
µDRIVE-uSD-G1 4. Appendix 4.1 Related Products: µUSB-MB5 o micro-USB module, USB to Serial Bridge Standard USB miniB connector o 10 pin header provides the following signals: 5V, 3.3V, GND, Tx, Rx, Suspend, DTR, CTS, RTS, GND o 5 Volts supply @ 500mA, 3.3 Volts supply @ 100mA Additional flow control signals, DTR, CTS, RTS Available with an additional 5 pin header for the µOLED...
µDRIVE-uSD-G1 4.2 Help and Other Information: Assistance with latest information and downloads visit the µDRIVE-uSD-G1 product web-page of your distributor. Questions and technical support please email support@4dsystems.com.au All related product information can be downloaded from www.4dsystems.com.au/prod.php?id=22 www.4dsystems.com.au...