Home
ALFAT SoC Processor User Manual(1.04)
Contents
1. Error Description HEX 0x00 Command successful 0x01 Unknown command 0x02 Incorrect parameters 0x03 Operation failed 0x04 Reached the end of the file folder list This is not an error 0x10 Media does not initialize 0x11 Initialize media failed 0x20 File folder doesn t exist 0x21 Failed to open the file 0x22 Seek only runs on files open for read 0x23 Seek value can only be within the file size 0x24 File name can t be zero 0x25 File name has forbidden character 0x26 File folder name already exists 0x30 Invalid handle 0x31 Handle source does not open 0x32 Handle destination does not open 0x33 Handle source requires file open for read mode 0x34 Handle destination requires file open for write or append mode 0x35 No more handle available 0x36 Handle does not open 0x37 Handle is already in use 0x38 Open file mode invalid Rev 1 04 Page 43 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Error Codes Error Description HEX 0x39 Handle requires write or append mode Ox3A Handle requires read mode OxFF Boot Loader indication code Rev 1 04 Page 44 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor DISCLAIMER DISCLAIMER IN NO EVENT SHALL GHI ELECTRONICS LLC OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DA
2. Pin Name Pin 1 UART TX 10 ACTIVE 2 RX SPI BUSY 11 Reserved 2 BUSY 3 2C SCL 12 VBAT 4 2 SDA 13 Internal 3 3V Do not connect 5 SPI SCK 14 RESET not 5V tolerant Rev 1 04 Page 38 of 45 www ghielectronics com GHI Electronics Preliminary Document Pin Name Pin Name 6 MISO UART BUSY 15 GND 7 16 Not connected 8 SSEL 17 Not connected 9 18 5 Volts 2x5 pin mount Pin Pin Name 1 Internal 3 3V Do 2 5V connect 3 UART TX 4 SPI MOSI 5 UART RX SPI BUSY I2C 6 MISO UART BUSY BUSY 7 Reserved 8 VBAT 9 GND 10 RESET not 5V tolerant 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 The board includes pads for RTC 32 768Khz crystal but the crystal is not included All required signals are exposed through a 1x16 pin mount Also if the desired interface is UART all signals required are exposed through a secondary 2x5 pin mount Rev 1 04 Page 39 of 45 www ghielectronics com ALFAT SoC Processor ALFAT OEM Circuit Boards GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT OEM Circuit Boards ALFAT
3. ALFAT SoC package is standard 10x10mm LQFP64 The following Table includes a brief description of ALFAT SoC processor pins Pin Name Description Power source for the internal RTC Connect to 3V battery or VCC Always use 2 diodes to connect a battery and VCC in case 1 VBAT the battery runs out of power This pin must have power even if the internal RTC is not needed 2 NC Should not be connected 3 5 2 Pin 1 for the 32 768 KHz crystal for the real time clock Optional 4 OSC32 OUT Pin 2 for the 32 768 KHz crystal for the real time clock Optional 5 OSC IN Pin 1 for 12 MHz system crystal 6 OSC OUT Pin 2 for 12 MHz system crystal 7 RESET Reset signal the pin pulled up internally Active Low THIS PIN IS NOT 5VOLT TOLERANT 8 USB1 STP USB High Speed PHY signal Do connected if PHY is not use 9 NC Should not be connected 10 USB1 ULPI DIR USB High Speed PHY signal Do connected if PHY is not use 11 USB1 ULPI NXT USB High Speed PHY signal Do connected if PHY is not use 12 VSSA Ground 13 VDDA 3 3V Power source 15 Should not be connected 16 NC Should not be connected 17 USB1 ULPI DO USB High Speed PHY signal Do connected if PHY is not use 18 VSS1 Ground 19 VDD1 Power 3 3V 20 ACTIVE Active signal level indicates the current status of command Rev 1 04 Page 9 of 45 www ghielectronics com GHI Electr
4. 04 Page 19 of 45 www ghielectronics com ALFAT SoC Processor ALFAT Command Set GHI Electronics Preliminary Document S Set Current Time and Date ALFAT SoC Processor ALFAT Command Set Format S se ddddtttt rF ddddtttt time and date 32bit structure 100 lt LF gt Example 5 lt lt 5 gt 34210000 lt gt Set 1 1 2006 00 00 00 100 lt LF gt Time and Date structure is a 32 bits standard structure used in FAT system For example 0x34212002 is 01 01 2006 04 00 04 Bits s Field Description 0x34212000 Bits in Binary 31 25 Year1980 Years since 1980 001 1010 24 21 Month 1412 0001 20 16 Day 1 31 0 0001 15 11 Hour 0 23 0 0100 10 5 Minute 0 59 00 0000 4 0 Second2 Seconds divided by 2 0 30 0 0010 G Get Current Time and Date Format lt lt gt lt gt Get current date MM DD YYYY lt LF gt 100 lt gt lt lt gt lt gt Get current time HH MM SS lt LF gt 100 lt gt Set UART Baud Rate Format B lt sp gt SSSSSSSS lt LF gt ssssssss The standard baud rate value in 100 gt 100 lt gt The first 00 will be sent when the baud rate value is correct Example lt lt gt 1 200 gt Set the baud rate at 115200 100 lt gt 100 lt gt Rev 1 04 20 of 45 www ghielectronics com GHI Electronics Preliminary Document Initi
5. 64 pin Single 3 3V power source Low power consumption TBD mA 40 C to 85 C operational temperature RoHS Compliant Lead free Rev 1 04 Page 5 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Architecture 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 ALFAT SoC processor provides 3 different standard access interfaces for the host system UART SPI or I2C Host System AVR PIC etc 4 SD miniSD pSD 4 Bit SD Bus SDHC USBOFS USB1 FS 9 245 ALFAT SoC sos Z Processor ARM Cortex M3 Core Rev 1 04 Page 6 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Architecture 2 1 Commander The function of the commander is to provide the user with a protocol and a set of commands to control the processor and access the files on the storage devices The physical interface that the user the host system can use to access the commander is UART SPI I2C serial port Command
6. File Edit Setup Control Boot Loader 1 8 Firmware FF Boot Loader 1 8 Firmware Erasing and updating the firmware Confirm lt gt Erasing ating for file transfer through XMODEM 1K CCCCCCCCCCCCCCCCCCCCCCCCIE Window Help Choose to send a file using XMODEM with 1K option and choose ALFAT GHI the firmware file downloaded from ALFAT page Rev 1 04 Page 35 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Boot Loader and firmware update ansfe CCCCCG ALFAT GHI m File name ALFAT GHI Files of type 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 File Edit Setup Control Window Help rasing and updating the firmware Confirm lt rasing ating for file transfer through XMODEM 1K CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCI File transfer completed successfully erifying has been updated successfully Version 1 8 2 GHI Electronics LLC ALFAT SoC Processor Rev 1 04 36 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Hardware integration guide 7T Hardware integration guide Power source is a big source of
7. SD Pin out 1x16 pin mount Pin Pin 1 UART_TX 9 WAKEUP 2 UART RX SPI BUSY I2C 10 BUSY 3 2 SCL 11 Reserved 4 2C SDA 12 VBAT 5 SPI SCK 13 3 3 6 SPI MISO UART BUSY 14 not 5V tolerant 7 SPI MOSI 15 GND 8 SSEL 16 Not connected 2x5 pin mount Pin Pin Name 1 3 3V 2 Not Connected 3 UART TX 4 MOSI 5 UART RX SPI BUSY I2C 6 MISO UART BUSY BUSY 7 Reserved 8 VBAT GND 10 RESET not 5V tolerant 8 3 ALFAT USB FS and HS Boards Coming soon Rev 1 04 Page 40 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Conditions of use and Performance 9 Conditions of use and Performance 9 1 Selecting a the Right Storage Media Current storage media market is flooded with low grade devices These devices may work on a PC but that doesn t mean the device was tested to follow the standards Also other devices may have advanced features not suitable for embedded devices For example some USB memory drives have a built in USB hub We made our best to support a wide range of storage medias that follows 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 For products that integrates ALFAT SoC process it is important to test diff
8. T E 5 00 06 00 T Y P 0x0A Write Transaction Request Frame The frame consists of two parts a header and payload The header consists of three bytes The first byte is the frame type the second and the third bytes are 16 bit transaction length Not including the header Payload This is actual transaction payload needed to be sent to ALFAT The payload section size MUST match the declared in the transaction size field Rev 1 04 Page 13 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT access interface Frame 16 bit Transaction Payload Type Size N 0x01 Size LSB Size MSB Byte 1 Byte 2 Byte N Response Frame 0x00 RFB RFB RFB RFB ge RFB RFB is Ready Flag Byte When a write transaction request is being sent ALFAT returns zero with the first received byte Frame Type and then it returns a ready flag with the received second byte Size LSB If the ready flag is 0x00 this means that 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 If the ready flag is 0x01 this means that ALFAT is ready to receive and the user can proceed and send Size MSB and the payload bytes Read Transaction Processing read transaction is preformed by sending read request frames and receiving response frames tha
9. is only success if the total handle used is smaller than 14 Rev 1 04 Page 30 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set Format Format Q lt sp gt CONFIRM FORMAT sP X r X is driver name Included 100 gt 100 lt gt UO USB flash drive 0 U1 USB flash drive 1 First 100 is sent before formatting Second 00 is sent when done Note this command may take a few seconds for calculations to finish depending on the media size Rev 1 04 Page 31 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Boot Loader and firmware update 6 Boot Loader and firmware update 6 1 General Description The boot loader is a software that boots the system up It verifies and runs the ALFAT firmware It also gives the hosting system an interface for firmware maintenance GHI Electronics regularly maintains ALFAT firmware with improvements and bug fixes ALFAT boot loader allows the hosting system to update the firmware The boot loader can only be accesses through the UART port without hardware handshaking So it only requires and UART RX pins It is very important that this UART port is exposed on the hardware using ALFAT SoC processor even if the used ALFAT interface with the hosting system is not UART SPI or I2C This guarantees that ability to update ALFAT firmware whe
10. the data 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 If an error occurs while writing ALFAT still expects all the data then it sends back the error code There is no line feed sent after the data If writing Hello to a file just send the 5 bytes and then ALFAT will respond with how many bytes were written In this case it should be 00000005 To make sure that the data is written to a file the file must be flushed F command or closed C command when done or there will be a risk of losing data or corrupting the file system if the storage media was removed or if there was a power loss Format W lt sp gt n gt SSSSSSSS lt LF gt n File Handle 0 1 2 3 4 5 6 7 8 9 A 100 gt D or F User sends data ssssssss 4 bytes Max in HEX data size ssssssss bytes to be written aaaaaaaa r aaaaaaaa 4 bytes always in HEX actual 100 lt gt written size Example lt lt gt 1 gt 10 lt gt Write 16 bytes to the file associated with 100 lt gt handle 1 1234567890abcdef 00000010 gt 100 lt LF gt Rev 1 04 Page 26 of 45 www ghielectronics com GHI Electronics Preliminary Document F Flush File Data This command flushes commits the data of an opened file The file will still be opened and associated with a handle after callin
11. 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 Note the data is sent directly to the user with no formatting no interpretation or conversion in UART and SPI mode In I2C mode some of the bytes might be replaced by two bytes Check I2C interfaces sections for more details Format R sP nM ssssssss r n File Handle 0 1 2 3 4 5 6 7 8 9 B 100 gt D or F ssssssss Bytes are M Filler Character returned ssssssss 4 bytes Max in HEX data size aaaaaaaa r to read 100 lt gt 4 bytes always HEX actual read size Example We have a file with 8 bytes ABCDEFGH in it and it is opened for read with handle number 2 lt gt 2 gt 5 lt gt Read 5 bytes from file handle 2 with 100 lt gt filler ABCDE 00000005 r 5 bytes are read 100 lt LF gt lt gt 22 gt 5 lt gt Read 5 more bytes 100 lt gt Only 3 bytes are available and 2 are filler FGH 00000003 lt tF gt bytes 100 lt LF gt Rev 1 04 Page 25 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set W Write to File This command is called to write data through a file handle assigned to an open file with write or append mode 1 Send W command with file handle and the data size 2 Wait till you get the acknowledge 3 Send
12. E ERR UH 41 9 1 Selecting a the Right Storage 2252 41 9 2 File Access OG secorrir uiti Dus eS heia 41 42 S 43 mic d 45 Rev 1 04 3 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Introduction 1 Introduction 1 1 ALFAT SoC processor Concept Adding FAT file system to products requires a lot of resources from the system and needs intensive development efforts This also requires USB Host drivers and SD memory drivers to be able o access storage medias such as SD cards or USB Mass Storage devices Additionally licensing patented technologies such as LFN is a lengthy and expensive process Thanks to ALFAT SoC Processor any simple system can now access files on SD cards and USB memory drives in a very short time with minimal resources through simple UART SPI or I2C interface ALFAT SoC processor is capable of accessing two USB mass storage devices and one memory card simultaneously This gives the user unique features such as copying data from one media to another USB Mass Storage 2 Device 1 UART SPI or I2C interface Host MCU preis Storage Device 2 SD SDHC MMC The Host MCU controls ALFAT through simple commands sent through UART serial SPI or 12C The commands give the host MCU the abilit
13. I 4 2 Interface UART interface uses three hardware signals UART_TX signal to send data out from ALFAT UART RX signal to receive data to ALFAT UART_BUSY signal This should be monitored while sending data to ALFAT When it is high no more data should be transmitted to ALFAT till it gets low Rev 1 04 Page 12 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT access interface UART configurations The default baud rate is 115200 The maximum tested baud rate is 3M To change the baud rate use B command Data bits 8 Parity None Stop bit 1 4 3 SPI Interface Mode SPI interface uses four hardware signals SPI SSEL ALFAT Chip Select 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 Sending and receiving data to and from ALFAT over SPI is performed through frame transactions which is a layer that resides between the actual SPI data bus and the communication stream commands responses data It is important to know that SPI frame transaction layer is independent from how ALFAT commands work Communication Stream lt gt Frame Transaction Write Frame M TES Write Frame T TMP lt LF gt 00 08 00
14. MAGES INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES LOSS OF USE DATA OR PROFITS OR BUSINESS INTERRUPTION HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THIS 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 Owned by their Respective Companies GHI Electronics LLC 2012 Rev 1 04 Page 45 of 45 www ghielectronics com
15. QU EAT SoC Processor Rev 1 04 Date April 16 2012 User Manual A high performance FAT file system SoC processor with dual USB Host interfaces and 4 bit SD interface Controlled through UART SPI or I2C FAT16 32 USB SD With LFN Host Document Information Description Abstract ALFAT SoC processor concept pin out specifications commands hardware integration guide and full information needed to implement a solution using this processor Firmware V1 03 GHI Electronics 2012 Preliminary Document www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Revision History Rev No Modification 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 Clarifying some ambiguous points Rev 1 02 03 15 12 Adding 6 4 Updating the firmware using a terminal console Fixes to 8 2 ALFAT SD board pin mount tables 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 04 Page 2 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Table of Contents Table of Contents used WOT c Y 4 processor SS PICO uias pida
16. ace for higher performance GHI Electronics is a member of SD association Rev 1 04 Page 7 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Architecture 2 4 USB Mass Storage Access ALFAT SoC processor is capable of accessing FAT file system files on USB mass storage devices The hardware provides two standard Full Speed USB 2 0 compatible host interfaces USBO and USB1 that use the internal USB PHY Only 22ohm resistors and USB host connector is needed 117 USB1 interface is also capable of running USB 2 0 High Speed mode by adding ULPI High Speed PHY chips like FUSB2805 This options quadruples the file system access speed Full Speed USB 2 0 is 12mbps 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 ALFAT boot loader allows the hosting system to update the firmware The boot loader can only be accessed through the UART port and it uses XMODEM 1K to transfer the firmware file to ALFAT Boot Loader and firmware update section explain this in more details Rev 1 04 Page 8 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Package and Pin Out 3 Package and Pin Out
17. alize and Mount MMC SD or USB This command should be called to initialize and mount the file system Any other file related commands will fail if this was not called first ALFAT SoC Processor ALFAT Command Set Format lt lt gt lt gt X Drive name 00 lt gt Memory Card drive UO USB Flash drive 0 Full Speed U1 USB Flash drive 1 Full Speed U1 H USB Flash drive 1 High Speed Requires an external HS PHY Example lt lt gt lt gt Initialize memory card 00 lt LF gt I lt sp gt U0 lt LF gt Initialize USB 0 at Full Speed mode 00 lt LF gt I lt sp gt U1 H lt LF gt Initialize USB 1 at High Speed mode 00 lt LF gt J Read Status Register Returns system status register Format J ar Read status register 100 lt LF gt is 1 byte in HEX that shows the SS lt LF gt status of media drive 100 gt First 00 is sent before starting calculations Example J lt r gt Indicating card detect pin is high and 100 gt USB 1 is in high speed mode 11 lt LF gt 100 lt LF gt This table shows the bit mapping Bit Number Status 0 SD Detect pin state 1 SD Protect pin state 2 9 Reserved 4 0 USB1 is in Full Speed mode 1 USB1 is in High Speed mode 5 6 7 Reserved Rev 1 04 Page 21 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor K Get Free Size Gets me
18. ands manually to evaluate the commands Note that the data exchanged with the files do not have to be in ASCII format This data is transferred as is When ALFAT is done processing a command it will always return an error code in this form Ixx n where xx is the error number 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 Command Description Command Description Test media Delete file or folder Get free size Find file or folder Initialize directory list Copy From File to Another Get next directory entry Rename file Format V Get version number Initialize MMC SD or USB Z Low power O Open file to a free handle T Initialize Real Time Clock W Write to a file Set current time and date R Read from a file G Get current time and date F Flush file B Change Baud rate C Close file Enable echo File seek J Read status register Y File tell E D K Q General command notes e command with its argument can not exceed 200 bytes This is not related to the 4096 byte data FIFO e Commands are terminated with line feed and ALFAT returned data termination is line feed as well However ALFAT will accept carria
19. dating the firmware using a terminal console It is recommended to use the provided firmware updater application But here is an example how to use a terminal console like TeraTerm to update the firmware instead Put ALFAT in the bootloader mode as explained in 4 1 Selecting the access interface Open the relative COM port and set the baud rate to 115200 and set the New line receive to LF 2 Tera Term disconnected V File Edit Setup D TCP IP Host 192 168 1 3 History Service Telnet TCP port 22 SSH SSH version SSH2 Other Protocol UNSPEC Serial Port OK Cancel Rev 1 04 34 of 45 www ghielectronics com Preliminary Document ALFAT SoC Processor Boot Loader and firmware update GHI Electronics Tera Term Serial port setu Port Baud rate Data Cancel Parity Stop Help Flow control Transmit delay 0 msec char msec line Tera Term Terminal setup Newline Receive LF Transmit CR Terminal size 90 X 35 V Term size win size Cancel Auto window resize Terminal ID T100 Local echo Answerback Kanji receive 7bit katakana Kanji transmit UTF 8 katakana Auto switch lt gt Kanji in SB Kanji out 65001 locale american Use X command and follow the instructions Z COMI3 Tera Term
20. dia total remaining free size Note this command may take several seconds for calculations to finish depending on the media size ALFAT Command Set Format K lt sP gt x lt LF gt X Drive name included 100 lt LF gt M Memory Card drive SSSSSSSSSSSSSSSS lt LF gt UO USB Flash drive 0 100 lt gt U1 USB Flash drive 1 ssssssssssssssss 8 bytes in HEX free size in drive First 00 is sent before starting calculations Example K lt sp gt u1 lt LF gt Size Available on USB Flash drive 0 100 lt gt is 1904148480 bytes 00000000717F0000 r 100 lt LF gt 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 Format lt spP gt full path lt LF gt Full path the full path needed to initialize 100 lt LF gt included drive name Example lt sP gt M TEST TMP lt F gt Initialize folder M TEST TMP 100 Rev 1 04 Page 22 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set N Get Next Directory Entry Calling command retrieves a directory entry from the directory list initialized using command Every time N command i
21. ected 57 USB1 D7 Do connected if PHY is not use 58 2 SCL SCL I2C Interface 59 I2C_SDA SDA 12C Interface 60 NC Should not be connected 61 NC Should not be connected 62 NC Should not be connected 63 VSS2 Ground 64 VDD4 Power 3 3V Rev 1 04 Page 11 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT access interface 4 ALFAT access interface ALFAT is controlled through UART SPI or I2C serial interfaces 2 pins are sampled on power to determine the interface The pins 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 The boot loader is needed for firmware updates Those pins have internal pull down resistor so an unconnected pin is considered low After pins are set the reset pin must be set to high state to allow ALFAT to boot up Note that the reset pin is NOT 5V tolerant ALFAT needs TBDms use 1second for now to sample these pins If the selected interface is SPI these pins can be change to their appropriate SPI functions otherwise it is safe to leave the pins in the same state used on power up SPI SSEL SPI MOSI Interface low low UART low high Boot loader high low 12 high high SP
22. erent media devices and offer a range of tested devices to end user GHI Electronics doesn t recommend any specific brand but always recommends selecting a well known source The failure will happen at initialization not at file read and write If a media mounts then it is safe to assume it will function with no later issues As discussed in the integration section Power source is a big source of problems as well ALFAT is capable of running at lower voltage or somewhat noisy voltage source The media may or may not work on bad voltages Make sure the voltage source to the media is reliable and there is large enough capacitor as close as possible to the media connector We recommend adding 0 1uF and 22uF Should a specific device fails to mount but this device is required please contact GHI Electronics with details on the failed device GHI s labs can test the media to determine if supporting this device is possible through a firmware improvement a fee may be requested for this service 9 2 File Access Speed There are many factors that effect the file access speed Some storage media devices have internal buffering for example Others have high speed rating But even on the exact same media speeds can be different through different tests Here are some factors that affect the speed on the same media fragmentation media life and voltage Fragmented storage runs slower because the system needs to spend more time or even read more sect
23. file and the file contains 0 00 or OxFF ALFAT will return followed by the actual byte This table explains this further Rev 1 04 Page 15 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT access interface Actual Data coming from File Data transmitted from ALFAT 12 bus 0x00 OxFF followed by 0x00 OxFF OxFF followed by another OxFF 0x01 OXFE Data is sent as is Important With NDT HDT being used the actual data size on a files maybe different than what is transmitted For example If a file has one byte and this byte value is zero ALFAT will actually send 2 bytes a OxFF followed by 0 00 This is all in the I2C interface drivers not in actual communication stream commands data to ALFAT The user will still need to send an 2 read transaction to read the remaining byte Bus Configuration ALFAT s I2C slave address is 0x52 b1010010 This is a fixed address and can t be changed 8 bit I2C transaction header 1010010 R 1 W 0 The maximum allowed I2C clock is 400Khz The hosting system must provide pull up resistors usually they are 2 2K on the bus as specified in the I2C specifications Rev 1 04 Page 16 of 45 www ghielectronics com Preliminary Document ALFAT SoC Processor ALFAT Command Set GHI Electronics 5 ALFAT Command Set All commands are in ASCII format A terminal programs be used to enter all comm
24. g the command This command is useful to make sure all data are physically saved in the media To make sure that the data is written to a file the file must be flushed F command or closed C command when done or there will be a risk of losing data or corrupting the file system if the storage media was removed or if there was a power loss Format F lt sp gt n lt tF gt Flush File handle n 00 lt gt 0 1 2 3 4 5 6 7 8 9 A B C D E or F Example F lt sP gt 0 lt LF gt Flush File handle 0 100 lt LF gt C Close File This command issues a flush file F Command internally and then release the file handle Format C lt sP gt n lt LF gt Close File handle n 100 lt LF gt n can be 0 1 2 3 4 5 6 7 8 9 A B C D E or F Example C lt sP gt 0 lt LF gt Close File handle 0 100 lt LF gt P File Seek This command changes the current byte position in a file Valid values are ranging from 0 to file size Format P lt sp gt n gt ssssssss lt tF gt n File Handle 0 through F 100 lt gt ssssssss 4 bytes new position Example lt lt gt 1 gt 10 lt gt Set file pointer at index 0x10 16 in decimal 100 lt LF gt Rev 1 04 Page 27 of 45 www ghielectronics com ALFAT SoC Processor ALFAT Command Set GHI Electronics Y File Tell Preliminary Document ALFAT SoC Processor ALFAT Command Set Gets the current byte index in a file Valid values are 0 t
25. ge return instead of line feed but not both e The user must read back the responses for each command properly and check whether the command was successful Rev 1 04 Page 17 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set e Commands must have the exact formatting Extra spaces are not allowed e All numbers are Hexadecimal represented in ASCII For example to send the decimal number 16 to ALFAT SoC which is 10 in Hexadecimal you send 0x31 which is ASCII for 1 and 0x30 which is ASCII for 0 Also for Hexadecimal numbers A to F they must be entered in upper case letters If using a terminal to enter commands manually then only type in the number e Some commands have multiple error codes Usually the first error code denotes the command is accepted and then it is processed Another error code is sent when the command has finished processing successfully If the first error code was a no success then the command is terminated Note that the second error code will never be sent e All commands that accept file name such as O and D commands require a full file path File name is not enough For example U1 folder data log is good but data log shouldn t be used V 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 lt tr gt Returns vers
26. ill 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 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 Format O lt sp gt nM gt full path r Open file file name followed full path 100 lt gt and associate it with handle and access mode M n is the handle number in HEX and can be 0 1 2 3 4 5 6 7 8 9 D E or F M can beR WorA Example O lt sp gt 1R gt M TEST VOLTAGE Open file VOLTAGE LOG with file LOG r handle 1 and read access mode This 100 lt LF gt file is located in TEST older on SD memory card O lt sp gt 0W gt U0 DAT CURRENT Open file CURRENT LOG using file LOGar handle 0 and write access mode on 00 lt LF gt USBO If folder DAT is not available it will be created automatically Rev 1 04 Page 24 of 45 www ghielectronics com Preliminary Document ALFAT SoC Processor ALFAT Command Set GHI Electronics R Read from File This command is called to read data through a file handle assigned to an open file with read mode The user determines the size of data to be read and the filler byte in the command parameters After executing the command ALFAT sends back the data and increments the internal file pointer If the the file pointer reached the end of
27. ion number VX X X LF 100 lt gt Example gt The version number is 1 0 0 v1 0 0 lt LF gt 100 lt LF gt Enable Echo Enabling echo makes ALFAT echos back the data it receives over UART Format lt gt lt gt n 0 Disable echo 100 lt LF gt n 1 Enable echo Example lt sP gt 1 lt LF gt Enable echo 100 lt LF gt Echo is disabled by default Rev 1 04 Page 18 of 45 www ghielectronics com GHI Electronics Z Set Power Mode Preliminary Document Format Z lt SP gt N lt LF gt 100 gt Power mode number Example Z lt SP gt 1 lt LF gt 100 lt LF gt Put ALFAT in hibernate mode The 00 will be returned after ALFAT wakes up by setting WAKEUP pin low Power mode number 0 Reserved 1 Hibernate mode set ZWAKEUP pin low to let ALFAT get out of the hibernate mode Reserved Reserved Reserved Reserved Reserved Reserved Reserved NID WwW DM Reserved T Initialize Real Time Clock Format T seS ar Shared Mode The RTC runs off the same 100 lt LF gt processor clock T lt sp gt B lt LF gt Backup Mode The RTC clocks using the 100 lt LF gt external 32 768Khz crystal and runs VBAT power 1 65 to 3 6 V backup coin battery This ensures that the RTC keeps clocking even if ALFAT main power is down Rev 1
28. n P ACT else P N 16 bit Size ACT 0x00 LSB 5 Byte 1 2 Important ACT size should be used only for data size estimating purposes because the send buffer might get filled with more data while processing the read command SPI Bus Configurations The maximum SPI clock is 24MHz SPI clock Idle state is Low Sampling is at the rising edge SPI BUSY active state is High SPI SSEL active state is Low The user is free to toggle SPI SSEL with every byte or with every chunk of bytes 4 4 12C Interface Mode I2C interface uses three hardware signals I2C_SCL I2C clock signal I2C_SDA I2C data signal 2 BUSY This should be monitored while sending data to ALFAT When it is high no data should be exchanged with ALFAT till it gets low 1 Transmit and receiving data to ALFAT is preformed through standard 2 transactions So for transmitting the user need use write transactions with ALFAT address and R W bit flag set to W followed with the payload The payload will be pushed to the internal inbound communication stream buffer Receiving data is similar and is preformed through standard 2 read transactions The user starts by transmitting ALFAT s I2C address with R W bit flag set to R followed by reading of one or more payload bytes from the internal outbound communication stream buffer When reading data ALFAT transmits a No Data Token NDT when no data is available If reading a
29. n needed 6 2 Firmware Updater App An updater application is provided by GHI to aid in updating the firmware Users may also wish to implement this functionality right into the host system so an update can happen within the hosting system The firmware update uses standard XMODEM 1K CRC protocol To connect ALFAT or one of the OEM boards to a PC 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 We recommend using USB TTL serial cable Here is the part number TTL 232R 3V3 from FTDI This USB enumerated as a virtual serial port and it provide TTL 3 3V levels at the other side that can be connected directly to ALFAT s UART interface Rev 1 04 Page 32 of 45 www ghielectronics com GHI Electronics Preliminary Document New Connection ALFAT SoC Processor Boot Loader and firmware update Step 1 Select Bootloader mode Connect SPI MOSI to 3 3V ALFAT CPU Pin 23 ALFAT SD board socket X4 Pin 4 ALFAT OEM board socket X4 Pin 4 Leave SPI SSEL not connected ALFAT CPU Pin 50 ALFAT SD board socket X3 Pin 8 ALFAT OEM board socket JP2 Pin 8 Step 2 Connect TTL UART interface Connect cable s TXD to ALFAT s UART_RX CPU Pin 43 SD board 4 socket X4 Pin 5 ALFAT OEM board socket X4 Pin 5 Connect cable s RXD
30. o file size Format Y lt sp gt n lt LF gt n File Handle 0 through F 100 lt gt 55555555 4 bytes HEX position in the file SSSSSSSS lt LF gt 100 lt LF gt Example lt lt gt 1 lt gt The file with handle 1 has the file pointer at 100 lt LF gt index 0x03 00000003 lt LF gt 100 lt LF gt D Delete File or Folder Deletes a file or a folder Appending the name with the symbol indicated this is a folder Format D lt sp gt FULL PATH lt LF gt Full path The full path where the FILE is 100 lt LF gt located if is added at the end of the full path string it means we are deleting a FOLDER not file Example D lt sp gt M TMP TEST TXT lt the FILE with name TEST TXT oh in TMP folder on SD memory card This 100 lt gt will not delete the TMP folder D lt sp gt M TMP lt xtr gt Remove the FOLDER with name TMP in 100 lt gt root folder of memory folder must be empty Rev 1 04 Page 28 of 45 www ghielectronics com GHI Electronics Preliminary Document Find File or Folder This command searches for a specific file or folder name at the specified path If the directory exists ALFAT outputs the file size attributes and date amp time of modification otherwise it returns an error indicating that the file is not found ALFAT SoC Processor ALFAT Command Set Format sP FULL PATH ar ssssss
31. onics Preliminary Document ALFAT SoC Processor Package and Pin Out Pin Name Description processing So it goes high whenever ALFAT is processing a command and it goes low when it sends out a command s response This pin is used to drive an activity LED indicator in the final product The maximum output current this pin can provide is 25mA The recommended current withdrawal is 8mA It is completely safe to ignore this signal and keep it not connected 21 USB1 ULPI CK USB High Speed PHY signal Do connected if PHY is not use 22 UA ST BUSY MISO SPI interface and UART BUSY pin 5V tolerant 23 SPI MOSI MOSI SPI interface 5V tolerant 24 NC Should not be connected 25 NC Should not be connected 26 USB1 ULPI D1 USB High Speed PHY signal Do connected if PHY is not use 27 USB1 ULPI D2 USB High Speed PHY signal Do connected if PHY is not use 28 1 Add a 10K resistor to ground 29 USB1 ULPI D3 USB High Speed PHY signal Do connected if PHY is not use 30 USB1 ULPI D4 USB High Speed PHY signal Do connected if PHY is not use 31 VCAP 1 Connect to a 22uF to ground 32 VDD1 Power 3 3V 33 USB1 ULPI D5 USB High Speed PHY signal Do connected if PHY is not use 34 USB1 06 USB High Speed PHY signal Do connected if PHY is not use 35 USB1 DM Data Minus USB Port 1 This is only used if no HS PHY is it installed NC if PHY is used Add 220 resisto
32. ors from the FAT table to find the needed cluster Formatting the media should take care of this fragmentation Also storage access speed decreases when the storage get closer to the end of life The time needed to erase sectors increases while the Rev 1 04 Page 41 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Conditions of use and Performance device is maturing Some sectors may even start failing at some point which causes more delays Finally while some devices can run on a range of voltages the lower the voltage the slower the device usually run nosy power source can cause errors while accessing the media that slow down the speed 9 3 Serial Interface Speed Overhead The actual speed of a specific media can be easily determined using the E command This is the internal speed with complete FAT file system overhead Such speeds are achieved when using the copy command since no serial connection is involved in transferring data In an actual product one of the serial interfaces will be used Those serial interfaces have some command response over head and also there is a maximum clock that can be used The following benchmarks show the different results These numbers will always be different as explained earlier TBA Rev 1 04 Page 42 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Error Codes 10 Error Codes
33. problems as well ALFAT is capable of running at lower voltage or somewhat noisy voltage source The media may or may not work on bad voltages Make sure the voltage source to the media is reliable and there is large enough capacitor as close as possible to the media connector We recommend adding 0 1uF and 22uF To be continued Rev 1 04 Page 37 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT OEM Circuit Boards 8 ALFAT OEM 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 8 1 ALFAT OEM Board ALFAT OEM Board is an OEM board that exposes all of ALFAT SoC processor features This board offers a seamless way to access files on SDHC SD and MMC cards plus on USB MSC devices such as tumb drives The board includes pads for RTC 32 768Khz crystal but the crystal is not included ALFAT OEM includes 1 SD MMC Connector with push spring 2 Dual USB connector Type A with Full speed USB 2 0 port o High speed USB2 0 port All required signals are exposed through a 1x18 pin mount Also if the desired interface is UART all signals required are exposed through a secondary 2x5 pin mount ALFAT OEM Pinout 1x18 pin mount
34. r in series if used 36 USB1 DP Data Plus USB Port 1 This is only used if no HS PHY is installed NC if PHY is used Add 22ohm resistor in series if used 37 NC Should not be connected 38 NC Should not be connected 39 SD_DO DO 4 bit SD Bus Add a 47K resistor between this pin and VDD 40 SD D1 D1 4 bit SD Bus Add a 47K resistor between this pin and VDD This pin generates 19 2MHz clock It is usually used to clock the ene USB High Speed PHY 42 UART_TX TX UART interface 5V tolerant 43 UART_RX RX UART interface BUSY pin for SPI and I2C 5V tolerant Rev 1 04 Page 10 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Package and Pin Out Pin Name Description Add a 10K resistor between this pin and VDD 44 USBO DM Data Minus USB Port 0 Add 22ohm resistor in series 45 USBO DP Data Plus USB Port 0 Add a 22o0hm resistor in series 46 NC Should not be connected 47 2 Connect to 22uF to ground 48 VDD3 Power 3 3V 49 NC Should not be connected 50 SPI SSEL SSEL SPI interface 5V tolerant 51 SD D2 DO 4 bit SD Bus Add a 47K resistor between this pin and VDD 52 SD D3 D1 4 bit SD Bus Add a 47K resistor between this pin and VDD 53 SD CLK CLK 4 bit SD Bus 54 SD 4 bit SD Bus Add 47K resistor between this pin 55 SPI SCK SCK SPI interface 5V tolerant 56 NC Should not be conn
35. s Dad 4 Tas Example RR Fnit qud 5 5 PRENTE E E E A E e 6 VA sip 27 NRI E EN 7 dasa 7 2 3 Memory Card Access SDHC SD er WIM 7 2 4 USB Mass Storage PUSS Sass 8 2 9 BOOt 8 Package and PIM OUT e 9 12 4 1 Selecting the mmu 12 4 2 UART Interfaco TT ODD 12 ORAE EEA EEEE 13 Modenesi E E 15 E TU NC DP 17 6 Boot Loader and firmware e tete o ga UE Sei Edad Sd 32 Gui Rab honda Vrbe RED pO aM UN M EPOR FN PME 32 Dem REDE eit 32 6 3 Boot 8525 46 34 6 4 Updating the firmware using a terminal 34 I M D 37 SALFAT QEM Circuit Board 38 NIB IINE ZA 22 20 eee ee IEA I E A 38 Ri iic 0 39 BSLO ALPAT USRB FS and HS PERO 40 9 Conditions OF USS and POmermaedf6g DER
36. s are human readable ASCII format This allows for easier development and troubleshooting But at the same time the commands are designed to easy to parse by the host software 2 2 FAT File System Engine The function of the file system engine is to handle accessing the file system according to FAT standards It has been optimized for high speed access and with high performance Here are some of the capabilities of this engine FAT16 FAT32 e Licensed Long File Names support Licensed to be used on ALFAT by Microsoft e Access up to 8 opened files simultaneously e Complete directories folders support e File access functions include read write append seek tell find delete remove folder etc e High speed read or write access up to 4000KBytes sec e Nolimits on media size file size or file folder count It is important to note here that the 8 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 SD or MMC ALFAT SoC processor includes memory card driver internally that supports SD SDHC and MMC cards This gives ALFAT the ability to access a wide range of memory cards such as standard or high capacity SD uSD cards or multimedia cards There is no limit on the card capacity Unlike typical solutions that acces the card through SPI based interface ALFAT s hardware provides a 4 bit SD bus interf
37. s 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 ar NNNNN File Name 100 gt EEE File Extension if any NNNNN EEE lt LF gt AA 1 byte in HEX File SAAsLF gt Attributes SSSSSSSSS lt LF gt ssssssss 4 bytes in HEX file 100 lt LF gt size Example N lt tF gt Passing N command two 100 gt times and getting the results TEST0001 TXT lt LF gt 00 lt LF gt 0000FE23 lt LF gt 100 lt LF gt N lt LF gt 100 lt LF gt TEST0002 TXT lt LF gt 20 lt LF gt 00001234 lt LF gt 100 lt LF gt File Attributes are one byte Standard Attribute Structure in FAT system 7 6 5 4 3 2 1 0 Reserved Archive Folder Volume System Hidden Read ID Only Rev 1 04 Page 23 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set O Open a File for Read Write or Append The command requires a free file handle and a access mode Open Modes are e Open for read requires the file to exist at the specified path e W Open for write will create a new file and give write privileges to it If the file already exists it will be erased and re written e A Open for append will write data to the end of the file If the file does not exist it w
38. ss 4 bytes in HEX file 100 lt LF gt size SSSSSSSS lt LF gt AA 1 byte in HEX file SAA lt LF gt Attributes hh mm ss se dd mm yyyy gt hh mmiss is last time the file 100 lt gt or folder was modified dd mm yyyy is last date the file or folder was modified Example lt sp gt M TEST TXT lt tr gt File has been found and its 100 gt size is 3892 bytes with no 00000F34 lt F gt special attributes 20 r 20 indicate this is a file 12 00 00 lt sp gt 01 01 2011 lt LF gt Last modification time is 100 lt gt 12 00 00 date is 1 1 2011 File Attributes are one byte Standard Attribute Structure in FAT system 7 6 5 4 3 2 1 0 Reserved Archive Folder Volume System Hidden Read ID Only 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 sP HANDLE SRC sP INDEX HANDLE SRC Handle source sP HANDLE DES sP LENGTH INDEX Copy from this index of F gt handle source 100 lt LF gt HANDLE_DES Handle destination XXXX lt LF gt LENGTH Length of data need to be 100 lt gt copied actual size has copied Example M lt sp gt 0 lt sp gt 0 lt sp gt 1 lt sp gt 64 lt LF gt Copy from file handle 0 at index 0 to 100 lt LF gt handle 1 wi
39. t carry the useful payload Request Frame The frame consists of two parts a header and stuffing byte payload The header consists of three bytes The first byte is the frame type the second and the third bytes are the requested 16 bit transaction length Stuffing byte payload This should always consists of 0x00 This section size should equal P where P is the actual payload size that ALFAT will send back Frame Requested Stuffing Byte Payload the size is P Type Transaction 16 bit Size N 0x02 N LSB N MSB 0x00 0x00 0x00 0x00 Response Frame The frame consists of two parts a header and payload The header consists of three bytes The first byte is the frame type response which is always 0x00 the second and the third bytes are 16 bit value ACT that indicates the actual data size available in the send buffer of ALFAT ACT value could be more or less that N the requested transaction size Payload This is the actual transaction payload that is being send out from ALFAT to the host This section size is P Rev 1 04 Page 14 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT access interface That actual Payload size is calculated as the following If the requested transaction size N is larger than ACT then P should equal ACT otherwise P should equal N Response Internal buffer filled Payload Bytes the size is P Type portion if N gt ACT the
40. th 0x64 bytes 00000064 lt LF gt 100 lt LF gt Rev 1 04 Page 29 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor ALFAT Command Set A Rename file Format A lt sp gt FULL PATH gt NEW FILE FULL PATH The full path of file It is NAME LF also included file name 100 lt LF gt NEW FILE NAME The new name file Just only name of new file no include full path here Example A lt sp gt U0 GHI ALFAT TXT gt ALFAT00 Rename ALFAT TXT in GHI folder 1 TXT lt LF gt 100 lt LF gt from USBO to ALFAT001 TXT E Test Media Speed Format lt 5 gt gt 55555555 lt gt X Drive name included 100 lt LF gt M Memory Card drive aaaaaaaa r UO USB Flash drive 0 bbbbbbbb r U1 USB Flash drive 1 100 lt gt 55555555 4 bytes data size for testing It should be divide 1024 aaaaaaaa 4 bytes in total milisecond for writing bbbbbbbb 4 bytes in HEX total milisecond for reading First 00 is sent before starting calculations Example lt lt gt gt 6400000 lt gt Test write and read on Memory 00 lt LF gt Card for 100MB 00005D14 r It takes 23828 millisecond for 000039FB r writing and 14843 millisecond for 100 lt gt reading Note this command may take a few seconds or minutes for calculations to finish depending on the size for testing It also takes 2 handles for writing and reading so the command
41. to ALFAT s UART_TX ALFAT CPU Pin 42 ALFAT SD board 4 socket X4 Pin 3 ALFAT OEM board socket X4 Pin 3 recommended to use this USB to serial cable from FTDI TTL 232R 3V3 Step 3 Power up the board Select the COM Porti associated with the serial cable Click on the connect button r Connection Select COM Port WM ALFAT Firmware Updater mud ALFAT About Step 2 Select the firmware G Data Code ALFAT Project Source Code AFLAT_Fimware backt Browser Step 3 Click Update button Serial port connected COM32 Device will be updated automatically DO NOT disconnect or tum off the device Erasing firmware please wait Please wait for sending data Firmware version 1 0 2 have been updated successful Check version number Rev 1 04 Page 33 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Boot Loader and firmware update 6 3 Boot Loader Commands Command Description R Run ALFAT firmware E Erase ALFAT firmware X Update ALFAT firmware the firmware file is transferred using XMODEM 1K V 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 Up
42. y 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 Rev 1 04 Page 4 of 45 www ghielectronics com GHI Electronics Preliminary Document ALFAT SoC Processor Introduction 1 2 Example applications High speed Data loggers Automated Machinery Digital picture viewer Consumer products 1 3 Key features Built in 2 port USB Host controller FAT16 and FAT32 File system No limits on media size file size or file folder count LFN Long File Name licensed by Microsoft Friendly user interface through UART SPI or I2C Programmable UART baud rate Up to 8 simultaneous file access SD SDHC card support no 2GB limit GHI electronics is an SD 29 association member MMC card support I Built in 2x USB 2 0 FS PHY USB 12mbps One USB ports is capable of HS 480mbps through external ULPI PHY High speed 4 bit SD card interface Up to 4000 KBytes sec file access speed on SD cards Up to 4000 KBytes sec file access speed on USB with ULPI HS PHY Up to 1000 KBytes sec file access speed on USB Full Speed no ULPI HS PHY RTC Real Clock Time with separate power domain All I O pins are 5 volt tolerant EXCEPT RESET PIN Small surface mount package LQFP
Download Pdf Manuals
Related Search
Related Contents
まちの総合情報誌 夏休みの力作に興味津々 Descargar Hotpoint FFA40X User's Manual dreamGEAR 3 in 1 FitBoard Bundle for Wii Fit 618369-oreillette Bluetooth manual de instalacion KGSZ 255 Manual Android TV Kompernass PFBS 6 V Operating and Safety Instructions Copyright © All rights reserved.
Failed to retrieve file