4D Systems µDRIVE-uSD-G1 User manual

Manual is about: Tiny “Disk Drive” Data Storage Module for Embedded Applications Based on micro-SD Memory Card

Summary of µ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 micro-drive.

  • Page 2

    ? drive - usd - g1 www.4dsystems.Com.Au 2 proprietory information the information contained in this document is the property of 4d systems pty. Ltd ., and may be the subject of patents pending or granted, and must not be copied or disclosed with out prior written permission. It should not be used fo...

  • Page 3: Table of Contents

    ? drive - usd - g1 www.4dsystems.Com.Au 3 table of contents 1. Description 1.1 introduction 1.2 features 2. Serial command set 2.1 command protocol 2.2 general command set 2.2.1 v ersion/device info request 2.3 disk drive operation command set 2.3.1 i nitialise disk drive memory card 2.3.2 r ead sec...

  • Page 4: 1  Description

    ? drive - usd - g1 www.4dsystems.Com.Au 4 1 description 1.1 introduction the µ 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 availa...

  • Page 5: 1.2  Features

    ? drive - usd - g1 www.4dsystems.Com.Au 5 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 proje...

  • Page 6: 2  Serial Command Set

    ? drive - usd - g1 www.4dsystems.Com.Au 6 2 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 als...

  • Page 7: 2.1  Command Protocol

    ? drive - usd - g1 www.4dsystems.Com.Au 7 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...

  • Page 8: 2.2  General Command Set

    ? drive - usd - g1 www.4dsystems.Com.Au 8 2.2 general command set 2.2.1 version/device info request ( v ) syntax : cmd 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...

  • Page 9

    ? drive - usd - g1 www.4dsystems.Com.Au 9 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 6...

  • Page 10

    ? drive - usd - g1 www.4dsystems.Com.Au 10 2.3.1 i nitialise 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 p...

  • Page 11

    ? drive - usd - g1 www.4dsystems.Com.Au 11 2.3.2 r ead 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...

  • Page 12

    ? drive - usd - g1 www.4dsystems.Com.Au 12 2.3.3 w rite 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 o...

  • Page 13

    ? drive - usd - g1 www.4dsystems.Com.Au 13 2.3.4 r ead 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 ...

  • Page 14

    ? drive - usd - g1 www.4dsystems.Com.Au 14 2.3.5 w rite 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 o...

  • Page 15

    ? drive - usd - g1 www.4dsystems.Com.Au 15 2.3.6 set memory a ddress ( @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 ad...

  • Page 16

    ? drive - usd - g1 www.4dsystems.Com.Au 16 2.4 serial interface (ttl) the µ 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 sho...

  • Page 17: 2.5  Usb Interface

    ? drive - usd - g1 www.4dsystems.Com.Au 17 2.5 usb interface the µ 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...

  • Page 18

    ? drive - usd - g1 www.4dsystems.Com.Au 18 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 pers...

  • Page 19: 3.  Specifications

    ? drive - usd - g1 www.4dsystems.Com.Au 19 3. Specifications the µ drive - usd - g1 has the following electrical specifications which must be adhered to at all times to prevent damage to the device. Symbol characteristic min typ max units vcc supply voltage 3.6* 5.0 6.0 v i current -- 23 -- ma deg c...

  • Page 20

    ? drive - usd - g1 www.4dsystems.Com.Au 20 3.1 host interface & pin-outs pin function 5 +ve power supply input: 3.6 to 6.0 volts d.C 4 serial transmit data pin: 0 to 3.3 volt signal levels. 3 serial receive data pin: 0 to 3.3 volt signal levels. 2 -ve power supply input: connect to gnd 1 reset pin: ...

  • Page 21: 3.2  Mechanical Details

    ? drive - usd - g1 www.4dsystems.Com.Au 21 3.2 mechanical details the µ drive - usd - g1 module footprint is 14.9 mm x 18.9 mm x 3.5 mm..

  • Page 22: 3.3  Power-Up Reset

    ? drive - usd - g1 www.4dsystems.Com.Au 22 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...

  • Page 23: 4.  Appendix

    ? drive - usd - g1 www.4dsystems.Com.Au 23 4. Appendix 4.1 related products: ƒ µusb-mb5 o micro-usb module, usb to serial bridge o 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 s...

  • Page 24

    ? drive - usd - g1 www.4dsystems.Com.Au 24 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 ...