4D systems µDRIVE-uSD-G1 User Manual

Tiny “disk drive” data storage module for embedded applications based on micro-sd memory card

Advertisement

Quick Links

micro-DRIVE
µ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

Advertisement

Table of Contents
loading

Summary of Contents for 4D systems µDRIVE-uSD-G1

  • 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...
  • Page 3: Table Of Contents

    µ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...
  • Page 4: Description

    µ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.
  • Page 5: Features

    µ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.
  • Page 6: Serial Command Set

    µ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.
  • Page 7: Command Protocol

    µ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 ‘,’...
  • Page 8: General Command Set

    µDRIVE-uSD-G1 2.2 General Command Set 2.2.1 Version/Device Info Request Syntax : Response : device_type, hardware_rev, PmmC_rev, reserved1, reserved2 cmd : 56hex, Vascii device_type : this response indicates the device type. 00hex = micro-OLED. 01hex = micro-LCD. 02hex = micro-VGA. 03hex = micro-DRIVE. hardware_rev : this response indicates the device hardware version.
  • Page 9: Disk Drive Operation Command Set

    µ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.
  • Page 10: Initialise Disk Drive Memory Card

    µ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.
  • Page 11: Read Sector Block Data

    µ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.
  • Page 12: Write Sector Block Data

    µ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.
  • Page 13: Read Byte Data

    µ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.
  • Page 14: Write Byte Data

    µ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.
  • Page 15: Set Memory Address

    µDRIVE-uSD-G1 2.3.6 Set Memory Address (@A) Syntax : extCmd, cmd, Address(Umsb:Ulsb:Lmsb:Llsb) extCmd : 40hex, @ascii cmd : 41hex, Aascii Address(Umsb:Ulsb:Lmsb:Llsb): A 4 byte µDRIVE address for byte wise access. Description : This command sets the µDRIVE memory Address pointer for byte wise reads and writes.
  • Page 16: Serial Interface (Ttl)

    µ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.
  • Page 17: Usb Interface

    µ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.
  • Page 18: Personality-Module-Micro-Code (Pmmc)

    µ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.
  • Page 19: Specifications

    µ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.
  • Page 20: Host Interface & Pin-Outs

    µ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 >...
  • Page 21: Mechanical Details

    µDRIVE-uSD-G1 3.2 Mechanical Details µDRIVE-uSD-G1 module footprint is 14.9mm x 18.9mm x 3.5mm. www.4dsystems.com.au...
  • Page 22: Power-Up Reset

    µ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.
  • Page 23: Appendix

    µ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...
  • Page 24: Help And Other Information

    µ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...

Table of Contents