ALFAT-SC-340 GHI Electronics, ALFAT-SC-340 Datasheet

no-image

ALFAT-SC-340

Manufacturer Part Number
ALFAT-SC-340
Description
Processors - Application Specialized FILE SYSTEM SoC with DUAL USB HOST & SD
Manufacturer
GHI Electronics
Type
File Systemsr
Datasheet

Specifications of ALFAT-SC-340

Rohs
yes
Core
ARM Cortex M3
Processor Series
ALFAT
Data Bus Width
32 bit
Maximum Clock Frequency
24 MHz
Operating Supply Voltage
3.3 V
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
Package / Case
LQFP-64
Interface Type
I2C, SPI, UART
Part # Aliases
GHI-ALFAT-SC-340
GHI Electronics 2012
Rev. 1.13
A high performance FAT file system SoC processor with dual USB Host
interfaces and 4-bit SD interface. Controlled through UART, SPI or I2C.
Document
Information
Abstract
Firmware
ALFAT SoC Processor
Description
commands, hardware integration guide and full
information needed to implement a solution using this
processor.
V1.08
ALFAT SoC processor concept, pin-out, specifications,
Date: October 18, 2012
User Manual
www.ghielectronics.com

Related parts for ALFAT-SC-340

ALFAT-SC-340 Summary of contents

Page 1

... SD interface. Controlled through UART, SPI or I2C. Document Information Abstract Firmware GHI Electronics 2012 Date: October 18, 2012 Description ALFAT SoC processor concept, pin-out, specifications, commands, hardware integration guide and full information needed to implement a solution using this processor. V1.08 User Manual www.ghielectronics.com ...

Page 2

... Added new features to Added CD and WP pin description to pin-out table. Fixed #WAKEUP pin description Rev 1.05 05/11/12 Added Rev 1.04 04/16/12 Major changes to ALFAT access interface section (UART, SPI and I2C) to match firmware version1.03. Busy pin is required to be monitored. Fixing B and K command description. Rev 1.03 03/19/12 Fixes to multiple typos. ...

Page 3

... GHI Electronics Document Revision History Rev No. Date Modification Rev 1.01 03/08/12 Updates to 4.3.SPI interface mode section Updates to 6.2.Firmware Updater App Rev 1.00 02/15/12 Preliminary document Rev. 1.13 Page ALFAT SoC Processor www.ghielectronics.com ...

Page 4

... GHI Electronics Table of Contents 1.Introduction.......................................................................5 1.1.ALFAT SoC processor Concept...............................5 1.2.Example applications...............................................6 1.3.Key features.............................................................6 2.Architecture......................................................................7 2.1.Commander.............................................................8 2.2.FAT File System Engine...........................................8 2.3.Memory Card Access (SDHC MMC)............8 2.4.USB Mass Storage Access......................................9 2.5.Boot Loader.............................................................9 3.Package and Pin-Out ....................................................10 4.ALFAT access interface..................................................13 4.1.Selecting the access interface...............................13 4 ...

Page 5

... I2C. The commands give the host MCU the ability to access files on the storage media. With ALFAT, file access rate can reach 4000 KBytes/sec. An important advantage of ALFAT is that supports Long File Name LFN and it is licensed by Microsoft for commercial use. Solutions that depends on ALFAT can use LFN commercially without the need for any additional licensing ...

Page 6

... All I/O pins are 5 volt tolerant EXCEPT RESET PIN. ● Small surface mount package, LQFP 64 pin. ● Single 3.3V power source. ● Low power consumption, 38mA fully operational and 5mA in hibernate. ● -40˚C to +85˚C operational temperature. ● RoHS Compliant/Lead free. ● Rev. 1.13 Page ALFAT SoC Processor Introduction www.ghielectronics.com ...

Page 7

... GHI Electronics 2. Architecture ALFAT SoC processor is an ARM Cortex-M3 processor that runs a robust file system engine with SD and USB host (mass storage) drivers. The processor access storage media though its 4-bit SD interface and two USB host 2.0 interface. One of the USB host ports is capable running at high speed 480mbps with external ULPI HS PHY chip ...

Page 8

... No limits on media size, file size or file/folder count. ● important to note here that the 16 file handle limit is only on how many simultaneous files are open. ALFAT SoC processor Has no limits on how many files can be opened and closed. 2.3. Memory Card Access (SDHC MMC) ALFAT SoC processor includes memory card driver internally that supports SD, SDHC and MMC cards ...

Page 9

... High-Speed USB 2.0 is 480mbps. 2.5. Boot Loader The boot loader is a piece of software that boots the system up. It verifies and runs ALFAT firmware. Also It gives the hosting system an interface for firmware maintenance. GHI Electronics regularly maintains ALFAT firmware with improvements and bug fixes. ...

Page 10

... GHI Electronics 3. Package and Pin-Out ALFAT SoC package is standard 10x10mm LQFP64. The following Table illustrates a brief description of ALFAT SoC processor pins. Pin Name 1 VBAT OSC32_IN 4 OSC32_OUT 5 OSC_IN 6 OSC_OUT 7 RESET 8 USB1_ULPI_STP USB High Speed PHY signal. Do not connect if PHY is not used ...

Page 11

... Pin Name Description being processed. Low when command is complete. Note: The command is considered complete when ALFAT is done sending the response to the command. This is automatically completed in UART but SPI and I2C are slaves so ACTIVE pin will go low after the master reads the response. ...

Page 12

... Only add10K resistor if HS PHY is not used SCL I2C Interface SDA I2C Interface Should not be connected safe to have pull up or down resistor on this pin. Should not be connected Should not be connected Ground Power, 3.3V Page ALFAT SoC Processor Package and Pin-Out the www.ghielectronics.com ...

Page 13

... The pins are SPI_SSEL and SPI_MOSI. 4.1. Selecting the access interface On power up, the system should hold ALFAT in reset state until the power is stable. This is done by holding reset pin low. Then, pins SPI_SSEL and SPI_MOSI must be set to the desired serial interface, UART, SPI, I2C or even to force the boot loader ...

Page 14

... SPI_MOSI: ALFAT Data in. • SPI_MISO: ALFAT Data out. • SPI_BUSY: This should be monitored while sending data to ALFAT. When it is high, • no more data should be exchanged with ALFAT till it gets low. Note: ALFAT access reference code library, available with ALFAT's downloads, provides an example how to use SPI interface ...

Page 15

... Type) and then it returns a ready flag with the received second byte (Size LSB). If the ready flag is 0x00, this means that ALFAT is not ready to receive any data over SPI. The current transaction gets terminated and the user must not send more bytes for this frame ...

Page 16

... SPI DMA receive channel This internal DMA channel that is used for high speed data receiving through SPI bus. ALFAT opens this DMA channel only when it accepts to receive data with Fast Write to File command (L Command) ...

Page 17

... Important: With NDT/HDT being used, the actual data size on a files maybe different than what is received from ALFAT. For example file has one byte and this byte value is zero, ALFAT will actually send 2 bytes, a 0xFF followed by 0x00. This is all in the I2C interface driver layer, not in actual communication stream (commands, data) to ALFAT ...

Page 18

... GHI Electronics { I2C_SendAddress(0xA4 + b=I2C_Read(); }while(b!=0); if(b==0xFF) { b=I2C_Read(); if 0x00) && 0xff now equals the actual value, 0x00 or 0xFF } return b; } Rev. 1.13 READ_BIT);//send address with RW set to R Panic("This should never happen"); Page ALFAT SoC Processor ALFAT access interface www.ghielectronics.com ...

Page 19

... If a command returns some information, then it will be the user expects a $ symbol followed by the information, unless otherwise is noted. You can send multiple commands to ALFAT SoC until its FIFO is full (indicated by BUSY or RTS). ALFAT will process one at the time in the same order. ...

Page 20

... File name is not enough. For example, “U1:\folder\data.log” is good but “data.log” shouldn't be used. ALFAT command's terminator can be LF('\n ('\r'). ● Get Version Number Prints the version number of ALFAT SoC firmware. Note that this version is not the same or related to the version number of the boot loader. Format V <LF> ...

Page 21

... Stop mode: With this mode the system will maintain its state but will stop • execution. Exiting Stop Mode: ALFAT exits Stop Mode by a rising edge on WAKEUP pin. ◦ After waking up from Stop Mode, program execution resumes from where it stopped. ...

Page 22

... The standard baud rate value in <LF> HEX. The first !00 will be sent when the baud rate value is correct. Set the baud rate at 115200. <LF> Page ALFAT SoC Processor ALFAT Command Set 0x34212000 Bits in Binary 001 1010 0001 0 0001 0 0100 00 0000 0 0010 www.ghielectronics.com ...

Page 23

... Important note: If ULPI PHY is implemented in the design (like in ALFAT OEM board), then the USB mass storage device connected to USB1 MUST be initialized in High-Speed mode (even if the USB device does not support High-Speed mode). Initializing it in Full-Speed might cause an undesirable performance. ...

Page 24

... USB1 is not mounted (or it was disconnected after it's being mounted) 1: USB1 is mounted 0: USB1 is in Full Speed mode. 1: USB1 is in High Speed mode. 0: USB0 is not attached. 1: USB0 is attached. 0: USB1 is not attached. 1: USB1 is attached. Reserved Page ALFAT SoC Processor ALFAT Command Set www.ghielectronics.com ...

Page 25

... Initialize Files and Folders List To list files/folders at a certain path, first use this command to initialize the list counter, then call N command to get a directory entry. Every time N command is called, ALFAT retrieves an entry of the list. No other commands should be called between the N commands, otherwise the user should start over and call @ command ...

Page 26

... Every time N command is called, ALFAT retrieves an entry of the list and increment the list pointer. When list pointer reaches the end of the list and N is called again, ALFAT returns error code 0x04 indicating the end of the list has been reached. Format N < ...

Page 27

... Open for append, will write data to the end of the file. If the file does not exist, ● it will be created. ALFAT has 16 available file handles. Each file, once opened, must be associated with a handle. Closing the file, would free up the file handle. Note 1: ALFAT can access unlimited number of files. The limitation is 16 simultaneous opened files but a handle can be closed then used to open any other file ...

Page 28

... After executing the command, ALFAT sends back the data and increments the internal file pointer. If the the file pointer reached the end of the file, then ALFAT returns filler bytes till it reaches the total size required in the R command, then it returns the actual data size ...

Page 29

... The sent data is written directly to the file as is (no interpretation or conversion). Also, the user should make sure that the sent data size matches the size declared in the command error occurs while writing, ALFAT still expects all the data then it sends back the error code. ...

Page 30

... Note: the user can not terminate sending the data the requested data-to-be- written size is 3MBytes, then the user MUST send all the 3MBytes. 6. ALFAT: after the user sends all the data, ALFAT acknowledges the user with the written data size ...

Page 31

... Flush File handle n n can be 0,1,2,3,4,5,6,7,8,9,A,B,C,D Flush File handle 0 Close File handle n n can be 0,1,2,3,4,5,6,7,8,9,A,B,C,D Close File handle 0 n File Handle 0 through F <LF> ssssssss 4 bytes new position Set file pointer at index 0x10 (16 in decimal) <LF> Page ALFAT SoC Processor ALFAT Command Set www.ghielectronics.com ...

Page 32

... Remove the FILE with name TEST.TXT in < TMP folder on SD memory card. This will not delete the TMP folder. Remove the FOLDER with name TMP in <LF> root folder of memory card. The folder must be empty. Page ALFAT SoC Processor ALFAT Command Set www.ghielectronics.com ...

Page 33

... File Attributes are one byte Standard Attribute Structure in FAT system Reserved M - Copy From File to Another Since ALFAT supports opening more than one file at the same time and it supports three file media, this command comes handy copy data from a file to another, even if the files are located on different media. Format M HANDLE_SRC < ...

Page 34

... FULL PATH: The full path of file >NEW FILE also included file name. NEW FILE NAME: The new name file. Just only name of new file, no include full path here. Rename ALFAT.TXT in GHI folder from USB0 to ALFAT001.TXT. X: Drive name, included: <LF> M: Memory Card drive U0: USB Flash drive 0 < ...

Page 35

... Note: this command may take several seconds to finish depending on the media size. Rev. 1. driver name. Included: <SP> <LF> M: Memory card. U0: USB flash drive 0 U1: USB flash drive 1 First !00 is sent before formatting Second !00 is sent when done Page ALFAT SoC Processor ALFAT Command Set www.ghielectronics.com ...

Page 36

... The firmware update uses standard XMODEM 1K CRC protocol. To connect ALFAT, or one of the OEM boards for update, a TTL serial connection is needed. If using a regular PC serial port then RS232 to TTL level converter is required between ALFAT UART interface and the serial port ...

Page 37

... GHI Electronics Rev. 1.13 Boot Loader and firmware update Page ALFAT SoC Processor www.ghielectronics.com ...

Page 38

... Returns the loader version and current ALFAT firmware version. Note: The boot loader is entirely separate program that loads ALFAT SoC firmware. The version number of the boot loader may not match the ALFAT firmware version number. The boot loader can't be updated. 6.4. Updating the firmware using a terminal console It is recommended to use the provided firmware updater application ...

Page 39

... GHI Electronics Use X command and follow the instructions Choose to send a file using XMODEM with 1K option then choose ALFAT.GHI. The firmware file is downloaded from ALFAT page on GHI's website. Rev. 1.13 Boot Loader and firmware update Page ALFAT SoC Processor www.ghielectronics.com ...

Page 40

... After the file being transferred. You will get a message like this "Firmware has been updated successfully. Version 1.0.2." After that you can release the boot loader mode and reset the chip, or run R command to run the firmware. Rev. 1.13 Boot Loader and firmware update Page ALFAT SoC Processor www.ghielectronics.com ...

Page 41

... GHI Electronics 7. Hardware integration guide The schematic provided on ALFAT web-page in an excellent reference design. This section provides further details. 7.1. Power Source Power source is a main cause of many problems. ALFAT SoC is capable of running at lower voltage or somewhat noisy voltage source. The media may or may not work on an unstable power source ...

Page 42

... Full Speed / High Speed with ULPI PHY To access the USB Full-Speed bus (12Mbps), two 22ohm resistors are needed to be connected in serial with the data+(DP) and data- (DM) signals of each of ALFAT's USB Host. If higher file access speed is desired, a ULPI PHY (for example FUSB2805) can be added on USB1 port, which will change the USB interface to High-Speed bus (480Mbps) ...

Page 43

... USB device does not support High-Speed mode). Initializing it in Full- Speed might cause an undesirable performance. 7.5. Real Time Clock ALFAT tags the modified or created file with the current time and date. To keep track of time, ALFAT uses the internal real time clock. ALFAT provides two options to the user to drive the RTC. ...

Page 44

... We highly recommend making this update feature available on final designs. The design should provide access to UART RX and TX pins, loader pin and reset pin. 7.7. Electrical characteristics ALFAT SoC is based on STM32F205RBT6. Consult with STM32F205RBT6 datasheet for electrical characteristics if needed. Rev. 1.13 Hardware integration guide ...

Page 45

... ALFAT Off-the-shelf Circuit Boards GHI Electronics offers off-the-shelf OEM boards that uses ALFAT SoC processor. These boards expose all needed signals to interface with ALFAT over UART, SPI or I2C and provide convenient connectors like SD or USB connectors. The boards are easily mountable on existing or new product. ...

Page 46

... Reserved 9 GND 8.2. ALFAT SD Board ALFAT SD board is an OEM board uses ALFAT™ SoC processor. This board offers a seamless way to access files on SD, SDHC and MMC cards with ALFAT SoC processor. The board include a standard SD/MMC connecter that includes a push spring. ...

Page 47

... SPI_MOSI 8 SPI_SSEL 2x5 pin-mount Pin Name 1 3.3V 3 UART_TX 5 UART_RX/SPI_BUSY/I2C _BUSY 7 Reserved 9 GND Rev. 1.13 ALFAT Off-the-shelf Circuit Boards Pin Name 11 Reserved 12 VBAT 13 3.3V 14 RESET (not 5V tolerant) 15 GND 16 Not connected Pin Name 2 Not Connected 4 SPI_MOSI 6 SPI_MISO/UART_BUSY 8 VBAT 10 RESET (not 5V tolerant) Page ALFAT SoC Processor ...

Page 48

... USB memory drives have a built in USB hub. We made our best to support a wide range of storage medias that follow the standards. But GHI Electronics does not guarantee that ALFAT will be able to access all storage media, especial if it one of the medias mentioned earlier. ...

Page 49

... On an average, file access speed is about 230KBytes/sec when using UART or SPI and about 25KBytes/sec when using I2C. That is about the same when using SD, USB FS or USB HS. To achieve higher writing speed, ALFAT command-set includes File command). Available for SPI interface only, this command is very similar to the W Command but, with L Command, it uses internal DMA to reach faster receiving rates ...

Page 50

... Handle requires read mode. 0x40 The system is busy. 0x41 Command is supported with SPI interface only. 0xFF Boot Loader indication code. Rev. 1.13 Description Card Detect and Write Protect signals section Page ALFAT SoC Processor Error Codes for more details. www.ghielectronics.com ...

Page 51

... SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SPECIFICATIONS ARE SUBJECT TO CHANGE WITHOUT ANY NOTICE. PRICES ARE SUBJECT TO CHANGE WITHOUT ANY NOTICE. ALFAT SOC PROCESSOR AND ITS LINE OF OEM BOARDS ARE NOT DESIGNED FOR LIFE SUPPORT APPLICATIONS. ALFAT is a Trademark of GHI Electronics, LLC Other Trademarks and Registered Trademarks are Rev ...

Related keywords