GHI Electronics ALFAT SoC Processor
Table of Contents
Table of Contents
1.Introduction.......................................................................4
1.1.ALFAT SoC processor Concept...............................4
1.2.Example applications...............................................5
1.3.Key features.............................................................5
2.Architecture......................................................................6
2.1.Commander.............................................................7
2.2.FAT File System Engine...........................................7
2.3.Memory Card Access (SDHC, SD or MMC)............7
2.4.USB Mass Storage Access......................................8
2.5.Boot Loader.............................................................8
3.Package and Pin-Out ......................................................9
4.ALFAT access interface..................................................12
4.1.Selecting the access interface...............................12
4.2.UART Interface......................................................12
UART configurations..............................................13
4.3.SPI Interface Mode................................................13
Write Transaction...................................................13
Read Transaction...................................................14
SPI DMA receive channel......................................15
SPI Bus Configurations..........................................15
4.4.I2C Interface Mode................................................15
I2C Bus Configuration............................................16
5.ALFAT Command Set.....................................................17
V - Get Version Number.........................................18
# - Enable Echo......................................................18
Z - Set Low Power Mode........................................18
T - Initialize Real Time Clock..................................19
S - Set Current Time and Date...............................20
G - Get Current Time and Date..............................20
B - Set UART Baud Rate.......................................20
I - Initialize and Mount MMC/SD or USB................20
J - Read Status Register........................................21
K- Get Free Size....................................................22
@ - Initialize Files and Folders List........................23
N - Get Next Directory Entry..................................24
O - Open File for Read, Write or Append...............25
R - Read from File..................................................26
W - Write to File.....................................................27
L- Fast Write to File (SPI mode only).....................27
F - Flush File Data..................................................29
C - Close File.........................................................29
P - File Seek...........................................................29
Y - File Tell.............................................................30
D - Delete File or Folder.........................................30
? - Find File or Folder.............................................31
M - Copy From File to Another ..............................31
A - Rename file ......................................................32
E - Test Media Speed.............................................32
Q – Format.............................................................33
6.Boot Loader and firmware update..................................34
6.1.General Description...............................................34
6.2.Firmware Updater App...........................................34
6.3.Boot Loader Commands........................................36
6.4.Updating the firmware using a terminal console....36
7.Hardware integration guide............................................39
7.1.Power Source........................................................39
7.2.Crystals..................................................................39
7.3.Card Detect and Write Protect signals...................39
7.4.Full Speed / High Speed with ULPI PHY...............40
7.5.Real Time Clock.....................................................41
7.6.Bootloader Access.................................................41
7.7.Electrical characteristics........................................41
8.ALFAT Off-the-shelf Circuit Boards................................42
8.1.ALFAT OEM Board................................................42
ALFAT OEM Pinout................................................42
8.2.ALFAT SD Board....................................................43
ALFAT SD Pin-out..................................................43
9.Conditions of Use and Performance..............................45
9.1.Selecting the Right Storage Media........................45
9.2.File Access Speed.................................................45
9.3.Serial Interface Speed Overhead..........................46
10.Error Codes..................................................................47
DISCLAIMER.................................................................... 48
Rev. 1.09 Page 3 of 48 www.ghielectronics.com