Home
USBwiz Manual
Contents
1. Copyright 2006 GHI Electronics LLC 8 of 40 User Manual USBwiz USB Hosting for Every Product Runs with simple robust protocol UART 2 or SPI UART runs as high as 921 6 K baud 2 up to 400kbps and SPI clock is up to 7 MHz Field upgradeable firmware Firmware can be updated from a file on the connected media Builtin RTC Real Time Clock Very few external components are needed Small LQFP 64 package 40 to 50 mA power consumption with capability of power down Single supply 3 3V 5V tolerant I O pins 40 C to 85 C temperature operating range Lead free 4 4 e 3 4 Example Applications Digital camera Data Logger Picture viewer USB thumb drive MP3 player Digital camera Automated machine Keyboard mouse joystick interface RS232 to USB printer server Automated SMS Sending e ote e 4 e 4 Copyright 2006 GHI Electronics LLC 9 of 40 User Manual USBwiz USB Hosting for Every Product 4 Pin Out and Description 1 UH_RD Read strobe Used for USB host chip must have a pull up resistor on this pin or UH 3 RIXC1 32KHzerystalforRTC ELE E
2. 8 LIS BIGHENT CLASSES ic abba de Lubin esi es dio o Ec duae 8 uiii teu PE 8 S SOME EXAWIEEESASEIJSATISNSE occa ausu alui csi bus iced ai Soc dubia Coco tu ol qa ma dn 9 ZPIN OUT AND DESCRIPTIQN aoo cU u 10 5 USBWIZ BOOT LOADER u uuu uuu caia uu ba pir con Ei ca a iu Co sd a a eo o asa ao Casa caseus aere 13 5 DESCRIPTION icis socii i Sic det Ente ee oo crates one co oes Quae aere 13 SING THER OT DONDE uu u ua Sigara m eal Shan u andi 13 5 Soor LOADER COMMANDES ca caeci dese amen line E ER CERE EAE v Ete mtu HER KM BIA RECEN 13 5d Boor ONDER ERROR 14 6 COMMANDING WITH 05 17 15 6 Tu SEHECTING AR NITE ERE Su u uuu kuu SUE Loco DUE CUm ctm Meets Re s Gd 15 IRURE TRE A a A A N 15 6 3
3. anta a assi A d NO 16 2C INTERFACE MODE 2225 aa dU itd ono depu 41 od ages ee apa 18 Z LEA STORAGE 18 T DIRE CTOMG SUTOIOGIS uu 19 Z D 19 TAUSENS STORACE ETE 19 HUMAN UTERE AGE DEVICE kuu mulu le A 19 USB PRINTERS emet Se die 20 X 5 SBSSERIAE DEVICES atu nicae artus siat A 20 USBWIZ COMMANDIS SE i u uuu been aenea uerb Een ia nca Faces a nau bres Hack Eu x 22 o INR GET VERSION NUMBER 2 aic dace ead 22 6 2 BR Ser UART BAUD RATE uy uyu utu ua
4. Copyright 2006 GHI Electronics LLC 35 of 40 User Manual USBwiz USB Hosting for Every Product connected on port 1 8 42 US Register Silabs Device not ready USBwiz has an internal Prolific chipset driver that can read devices with default or specific vendor and product IDs Format USp p is the port number PID and VID are the default FTDI s 0x6001 and 0x0403 Format2 USp gt vvvv gt xxxx p is the port number vvvv is Vendor ID pppp is Product ID Example US 1 Register Silabs device with default VID and PID connected on port 1 Copyright 2006 GHI Electronics LLC 36 of 40 User Manual USBwiz USB Hosting for Every Product Appendix A Error Codes No Error ERROR_READ_SECTOR ERROR_WRITE_SECTOR ERROR_ERASE_SECTOR ERROR_NEXT_CLUSTER_VALUE_OVER_RANGE ERROR NEXT CLUSTER VALUE UNDER RANGE ERROR FILE NAME DIR EXTENSION OVER 3 ERROR MEDIA FULL DIR ENT FOUND DIR ENT NOT FOUND ERROR FOLDER IS CORRUPTED FIRST CLUSTER ERROR FOLDER IS CORRUPTED DIR DOT NOT FOUND ERROR FOLDER IS CORRUPTED DIR DOTDOT NOT FOUN D ERROR OPEN FOLDER FILE ERROR FOLDER NOT EMPTY ERROR READ MODE REQUIRED ERROR END OF DIR LIST ERROR FILE PARAMETERS ERROR INVALID HANDLE ERROR EOF ERROR NEW SIZE ZERO ERROR HCD PTD COMP DATA TOGGLE 0x63 Copyright O 2006 GHI Electronics LLC 37 of 40 User Manual USBwiz USB Hosting for Every Prod
5. Time and Date structure is a DWORD Standard structure in FAT system Bits s Field Description 31 25 Year198 Years since 1980 0 24 21 Month Day 1 31 20 16 15 11 Hour 0 23 8 27 ND Rename File or Folder Format ND filename newname filename follows the short name formation newname follows the short name formation Example TEST TXT CURRENT LOG Rename the with the name TEST TXT with name CURRENT LOG 8 28 UH Register USB Human Interface Device USBwiz has an internal HID Driver that can control 2 HID devices like Mice Keyboards and Joysticks UH Command is responsible for the manual Registering of USB Devices as HID This command also returns HID Report Size which defines the quantity of Data that will be returned by RH command Format UH h gt p his USB device handle of an enumerated device 100 a free USB Pipe Handle in is HID Report Size 100 Copyright 2006 GHI Electronics LLC 31 of 40 User Manual USBwiz USB Hosting for Every Product Example UH 0 gt 3 Register USB device of USB device handle 0 as HID and use 100 Pipe Handle 3 100 Report size is 4 Bytes 8 29 RH Read HID Report This command read HID Report s Data Format RH p p is an opened USB Pipe Handle by UH command 100 Report s Data may not be readable since it is not converted to ASCII HEX Bytes but they are returned as 100 they c
6. 35 37 D3 Data line 3 Used for USB host chip 38 39 40 Data line 14 Used for USB host chip 41 D6 BL Data line 6 This line MUST be high at USBwiz power up and reset Make sure it has pull up resistor 5 Clock for SPI bus 50 VSS Ground 51 V3 3 3V power pin 52 TMS Leave unconnected 53 SPI_MISO In SPI mode this pin is data output from USBwiz on SPI bus UART_RTS In UART mode this pin is Ready To Send Signal 54 55 SPI SSELZ Select line for USBwiz in SPI mode 57 USBwiz_RESET Reset signal for USBwiz USBwiz reset is required SPI MOSI In SPI mode this pin is data input to USBwiz on SPI bus UART CTS In UART mode this pin is Clear To Send Signal after power up 58 UH CS Z Chip Select Used for USB host chip must have a pull up resistor this pin or UH RD VSSA Analog Ground 60 TDI Leave unconnected XTAL2 Connect to 14 7456Mhz crystal 62 XTAL1 Connect to 14 7456Mhz crystal Copyright 2006 GHI Electronics LLC 11 of 40 User Manual USBwiz USB Hosting for Every Product Pin Name Description VREF 3 3V reference for analog inputs Copyright 2006 GHI Electronics LLC 12 of 40 User Manual USBwiz USB Hosting for Every Product 5 USBwiz Boot Loader 5 1 General Description The boot loader is used to update the firmware of USBwiz The firmware is the code that sits inside the USBwiz chip and does all the work When there is a new firmware re
7. USBwiz USB Hosting for Every Product iode oia co eet 26 G TO EP Fivan ites DATA ra a uo fos ute 27 EE READE ROM EE te uu una asss gs ba tU cece natty 27 c TS WE Wall TONE 22 asa aqya bue a Sasa 27 8 19 SW SHADOW WRITE TO MULTIPLE FILES 28 8 20 RW READ FROM WRITE TO OTHER tod dasa pcr acri dd ca 29 SE COEPI SUE cocos Prout IM ARUM DR gant DAE NOE 29 O e d m RCRUM 30 8 23 CURRENT FILE POINTER POSITION u uuu uu u decet neces decis 30 O AAE R E MERE tla cha id AB ce aol ee area 30 c 25 D rr ce 30 OUD 30 S 27 ND RENAME FILE OR FOLDER iiia veris
8. 5 0 or 1 Example 05 5 Switch access to SD card 8 7 MS Get Media Statistics Format MS DWORD Media Size 100 HEX DWORD Free Size 100 8 8 QF Quick Format Media This command resets File Allocation Only No change occurs to Boot Sector or MBR Format QF CONFIRM FORMAT Note the function will not be executed till the right confirming string follows the command Copyright 2006 GHI Electronics LLC 24 of 40 User Manual USBwiz USB Hosting for Every Product 8 9 IL Initialize List Files and Folders It sets List Files and Folders Function pointer to the first Directory entry in the current root Format IL Example IL Related Command NF 8 10 NF Get Next Directory Entry This command will print out the Directory Entry File or Folder and increments List Files and Folders pointer Format NF File Name 100 File Extension HEX Byte File Attributes 100 HEX DWORD File Size Example NF Passing NF command two times and 100 get the 100 NF 100 100 Related Command IL 2 Ces wass are byte pander Sucre in FAT system ID 8 11 MD Make Directory Creates a folder Format MD foldername foldername follows the short name formation Example MD MYFOLDER Create a folder with name M YFOLDER 8 12 CD Change Directory Changes the current folder ac
9. any parameters and it returns the version number On the other hand MD requires parameter to run MD creates makes a folder on the accessed media device MD LOG creates a folder with the name LOG Also every command must be terminated with Carriage return This is the enter key on your keyboard When programming C it is or OXOD The backspace key is supported in case there is a need to discard the last entry There are many restrictions that must be noticed or USBwiz will not accept the command Commands must be 2 characters Every command must have the exact number of arguments Spaces must be used whenever is required Extra spaces count as errors All numbers are hexadecimal 7 1 FAT Storage Media USBwiz can connect to two kinds of storage media types The media types are SD MMC cards and USB Mass Storage device SCSI command subclass bulk only protocol which includes thumb flash USB hard drives and card readers USBwiz supports 3 simultaneous FAT devices Keep in mind that all devices must be formatted FAT12 FAT16 or FAT32 USBwiz can mount up to 3 File System Medias that are independent from each other which means that all opened files and operations in one file system has no effect on the others This gives USBwiz very great capability of flexible switching between the file system Medias and providing other valuable functions like reading from file in one Media and write it back in other file in anot
10. even is Mass Storage Device Handle 100 55555555 HEX DWORD sector address 512 Bytes must be sent to USBwiz 100 Example2 WS 0021 Write to Sector 1 from attached USB Mass Storage Device Media to Mass Storage Handle 0 Copyright 2006 GHI Electronics LLC 23 of 40 User Manual USBwiz USB Hosting for Every Product 8 5 FM Mount File System USBwiz can mount up to 3 File System Medias that are independent from each other which means that all opened files and operations in one file system has no effect on the others This gives USBwiz very great capability of flexible switching between the file system Medias and providing other valuable functions like reading from file in one Media and write it back in other file in another media at the same time FM takes the responsibility of mounting the dedicated File System and doing any necessary USB commands for USB memory Format FM Mount File System for device qd d be S for SD 0 for USB 0 or 1 for USB 1 FM d Mount File System for device 2 and LUN Example FM 0 Mount device on USB port 0 and use default LUN 0 FM 1 gt 4 Mount device on USB port 1 and use LUN 4 8 6 DS Device Switch Device Switch command switch the file access to different File System The command just tells what device to use for the next file access The Fm commands automatically calls DS on the last successfully mounted media Format DS d Can be
11. external hard drive Finally there is away for your product to read files from USB thumb drives 3 2 Supported USB Client Classes The USB organization defines many classes for different USB devices This means all USB devices of a certain type keyboards for example should run the same way This is the reason why you do not need to install drivers when connecting a mouse to your PC Your operating system includes the USB class drivers USBwiz comes with many USB class drivers If a class is not supported by USBwiz you can still use it by accessing the raw USB commands USB supported Devices Most Human Interface Devices HID such as mouse keyboard and joystick Printers with plain ASCII support Mass Storage Thumb drives and external USB hard drives Communication Modems and cell phones that contain Abstract Control Mode Subclass Interface like Nokia Cell phones Ralink Tech Wi Fi 802 11 USB devices with Ralink Tech chipset Not a standard class and still under development d 3 3 Key Features 4 FAT32 16 FAT12 support Simultaneous access to 3 FAT devices Multi Media Card MMC and Secure Digital SD memory cards USB host stack and raw access to USB devices HID USB class support Printer USB class support Mass storage USB class support Supports ISP1160 Easily used with any microcontroller including PIC AVR Zilog etc
12. the file send another RF If USBwiz couldn t get all the data it promised to return it will send a filler symbol instead It is up to the user to decide what the filler is going to be Format RF nM gt ssssssss n File Handle 100 M Filler Character ssssssss HEX DWORD desirable data size to be read HEX DWORD actual read data from file 100 size Example We have a file with 8 bytes ABCDEFGH in it and it is opened for read with handle number 2 RF 2255 Read 5 bytes from a file 2 with filler 7 100 USBwiz accepted the command This is the data coming from the file All 5 bytes are valid 100 errors has occurred RF 27 gt 5 Read more data We will request 5 but only 3 are 100 left ZZ No errors has occurred USBwiz returned the last 3 bytes but added 2 fillers 100 USBwiz indicating it was able to read 3 bytes only USBwiz no error indication Related Commands OF CF PF and FP 8 18 WF Write to File After a file is opened for write you can use WF to write to that file handle After WF command USBwiz will respond with error code If the error code is 00 then writing data to the file is ready Now everything goes into the interface goes directly to the file with no interpretation what so ever After sending all requested data USBwiz will Copyright O 2006 GHI Electronics LLC 27 of 40 User Manual USBwiz USB Hosting for Every Product return the actual write count In some insta
13. C 6 2 UART Interface In UART mode UART_TX pin is used to send data responses to your microcontroller and UART RX to receive commands data from your microcontroller The default baud rate for UART is 9600 baud 8 bit no parity and 1 stop bit USBwiz can be set to different baud rates CTS and RTS lines must be used in high band width applications CTS pin is an input to USBwiz When it is high USBwiz will not send data and will wait for CTS to go low CTS should be high as long as possible to not slow down USBwiz RTS pin is an output from USBwiz and it is set high when USBwiz FIFO is near full Depending on data transfer speed RTS pin may never go high because USBwiz is contentiously emptying the FIFO Note The internal UART has hardware TX FIFO that is 16 byte long After asserting CTS USBwiz may still send the internal FIFO up to 16 bytes Important USBwiz will NOT send any data if CTS pin is high If this pin is not used then it must be connected to ground Copyright 2006 GHI Electronics LLC 15 of 40 User Manual USBwiz USB Hosting for Every Product 6 3 SPI Interface Mode In SPI mode six pins are used for communication to implement slave SPI including two pins for handshaking SPI SSEL SPI SCK SPI MISO and SPI MOSI are the standard SPI pins where SSEL is used for Slave Select SCK is the Serial Clock 7Mhz running and 1 75Mhz for boot loader MISO is the data line going from USBwiz to your microcont
14. E RTXC2 a C stal for RTC 6 Juss Connecttoground O i Wah __ Analog supply source For future expansion Can be Analog in or out 10 UH_RESET Reset pin Used for USB host chip D9 _ Data line 9 Used for USB host chip line 9 Used for USB host chip ACTIVITY_LED Gos high when executing a command and back low when finished 16 D8 Data line 8 Used for USB host chip VSS Connect to ground UART_TX In UART mode this is the transmit pin SPI DATARDY In SPI and 2 modes this flag indicates that USBwiz has data ready in SPI or I2C buffer and master must 2 DATARDY read it USBwiz will als any incoming command when this pin is high TRST UART_RX In UART mode this is the data receive pin SPI BUSY In SPI and I2C modes this pin is a flag that indicates that USBwiz is busy and it will not accept any 2 BUSY commands 22 2 SCL The SCL line for I2C bus 23 VCC 3 3V power pin RTCK DBG MMCISD Clock signal for SD memory cards MODEO Together with MODE1 select the interface mode for USBwiz 29 MMC SD MISO Data signal from MMC or SD memory cards Pull up Copyright O 2006 GHI Electronics LLC 10 of 40 User Manual USBwiz USB Hosting for Every Product Pin Name Description resistor is required on this 30 31 USBwiz 33 Data line 0 Used for USB host chip 34 D1 Data line 1 Used for USB host chip
15. OF 1R gt VOLTAGE LOG Open file VOLTAGE LOG to file handle 1 with READ access mode OW gt CURRENT LOG Open file CURRENT LOG to file handle O with WRITE access mode 8 15 CF Close File Handle This command closes the opened file and updates file parameters in the file system and confirm that all data in file buffer is written to the media Then it releases the file handle to be available for new file opening It is an important command especially for file functions that add or modify on files to confirm that data is written on the media and file parameters are updated Format CF n Close File handle Example CF 0 Close File handle 0 Copyright O 2006 GHI Electronics LLC 26 of 40 User Manual USBwiz USB Hosting for Every Product 8 16 FF Flush File Data This command does the same function of CF function except releasing the file handle So it updates file parameters and flushes file buffer data into storage media and keep file handle ready for another write command It is made especially for file functions that add or modify on files to confirm that data is written on the media and file parameters are updated Format FF Close File handle n Example FF 0 Close File handle 0 8 17 RF Read from File Sending RF with the file handle and the byte count and USBwiz will return your data The file must be opened for read first To read more data from
16. PPENDIX C LICENSING 2 uu aassasaassss asahanasaasanaaewssasaaasaaqassaasaqussapashassssaasanasanaakaqskana 40 Copyright 2006 GHI Electronics LLC 3 of 40 User Manual USBwiz USB Hosting for Every Product 1 USB Bus 1 1 Introduction Universal Standard Bus USB dominates when it comes to peripherals interfaces From a mice and keyboards to printers and external hard drives most utilize USB interface As any other protocol USB has its positives and negatives On the positive side USB is designed for hot swappable devices This means you can connect or disconnect any device at any time Also you can have up to 128 devices connected at the same time to one host On the negative side USB is not easy to add to a product From the complexity of the hardware to the many issues that need to be addressed for the software For more info check out www usb org 1 2 USB One Host and Multiple Devices If you ever noticed all USB devices connect to the PC but they don t connect to each other not counting USB OTG USB protocol runs on a pyramid base The PC is the top of the pyramid and the devices connect to the PC directly or multiple devices can connect to a HUB and the HUB will connect to the PC So on a USB system there is one and only one HOST your PC and one or more device s Adding a USB device to a product can be simple by using one of the USB lt gt UART chips Silabs Prolific and FTDI offer the most popular
17. RD desirable split position in the source file 100 HEX DWORD actual written data to the first part file HEX DWORD actual written data to the second part file Example Suppose that the source file is represented by file handle 1 with size 32 Bytes And we want to split it at the position 16 and save the parts into files represented in file handles 0 and 2 which are opened in write mode SF 1 gt 0 2 10 Split file 1 at position 16 into two files 0 and 2 100 USBwiz accepted the command USBwiz was able to write 16 bytes to the first part 100 errors has occurred USBwiz was able to write 16 bytes to the first part 100 errors has occurred Copyright 2006 GHI Electronics LLC 29 of 40 User Manual USBwiz USB Hosting for Every Product 8 22 PF Seek File This command changes the file pointer position File must be opened in Read Mode Format n gt ssssssss n File Handle ssssssss HEX DWORD new position Example PF 1210 Set file pointer at position the 16 byte in file supposing that its size is less than 16 bytes 8 23 FP Get Current File Pointer Position This command gets the current sector address and the position in that sector of file pointer File must be opened in Read Mode Format FPn n File Handle 100 DWORD Sector address HEX WROD position in Sector 100 8 24 ZF Resize File This command sets file size t
18. S SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE COMPANIES WHO UNITIZE ALFAT OR USBwiz or USBwiz IN THEIR PRODUCTS MUST CONTACT MICROSOFT CORPORATION FOR FAT FILE SYSTEM LICENCING GHI ELECTRONICS LLC SHALL NOT BE LIABLE FOR UNPAID LICENSE SPECIFICATONS ARE SUBJECT TO CHANGE WITHOUT ANY NOTICE Copyright O 2006 GHI Electronics LLC 40 of 40 User Manual
19. USB lt gt UART chips This is on the hardware side but what about software and drivers These companies offer drivers for multiple operating systems as well That is all great but about adding a host When adding a USB device chip to your product your product will be able to connect to a PC Now what if you want to use any USB device with your product To connect a USB printer to your product you need a USB host Before there wasn t any easy or efficient way to add a USB host to a product Most USB hosts run on PCI bus and required a full operating system to run it Some vendors introduced hosts that run on ISA bus but even with ISA a little microcontroller as PIC or AVR can t run the USB host stack affectively USBwiz solves the USB host problem 1 3 In short what is USB 1 3 1 USB 101 The USB specification manual is hundreds of pages We will try to simplify it in few points Every USB Devices has at least one Configuration Set which logically contains at least one interface Every interface contains Endpoints Those Endpoints are the main elements in USB client host communication 4 Endpoints are used to opening logical channels which are called Pipes The host software uses pipes to communicate with devices Copyright O 2006 GHI Electronics LLC 4 of 40 User Manual USBwiz USB Hosting for Every Product Configurations Interfaces Endpoints are described in Descriptors in every USB Device There is only o
20. USBwiz User Manual Revision 2 13 GHI Electronics LLC dk KRKK preliminary Version 2 20 will the first full release with all functions tested and with free supplied code library Updated August 23 2006 USBwiz USB Hosting for Every Product Table of Contents 4 RODU C HON Sates obser ache ete 4 1 2 USB OE HOST AND DEVIEEST iii cedet ite arvo t tespatisabboredssiaidiadssees di tad Deeds d Pes 4 JS INCSHORT of a 4 SE J TT em eee 4 T8 PAN SIGE SOG GOS sii etsi 5 Easter T VEG a aes ssi lata iad ek ac a GL a 5 2 FROM USBWIZ VT TO USBWIZ V2 sic uuu bance esi noia dent uaa Eo cca ee LES a pac 7 uuu 8 Se INTRODUCTION
21. ame from the Pipe Example RH Register USB device of USB device handle 0 as HID 100 and use Pipe Handle 3 100 8 30 UP Register USB Printer USBwiz has an internal Printer Driver that can support up to 2 printers UP Command is responsible for the manual Registering of USB Devices as Printer Format UP h his USB device handle of an enumerated device Example UP 1 Register USB device of USB device handle 1 8 31 PR Reset USB Printer Format PR Reset USB Printer Example PR 8 32 PS Get USB Printer Status Format PS h is USB device handle of an enumerated device 100 pis a free USB Pipe Handle 100 Example PS Register USB device of USB device handle 0 as HID and 100 use Pipe Handle 3 Copyright 2006 GHI Electronics LLC 32 of 40 User Manual USBwiz USB Hosting for Every Product 100 Printer status indicates Not paper in the feeder Note Some USB printers not always able to determine Status 1 Selected 0 Not Selected OT Res Error aen No Error 1 Error Reserved 8 33 PP Send Data to USB Printer to print Format 5 ss is Byte data to be sent to printer size 100 Data to Print 100 Example PP D 100 Hello Word 100 8 34 05 Register Serial Communication Device USBwiz has an internal CDC Driver UA Command is responsible for the manual Registering o
22. cess Folder must exist Format CD foldername Foldername follows the short name formation Example CD MYFOLDER The current root is in MYFOLDER Copyright O 2006 GHI Electronics LLC 25 of 40 User Manual USBwiz USB Hosting for Every Product 8 13 RD Remove Directory This command removes Directory The directory must be empty from any files or subdirectories Format RD foldername Foldername follows the short name formation Example RD MYFOLDER Remove the folder with name MY FOLDER 8 14 Open a file for read write or append To open a file for read write or append in the current Folder use OF command The commands require a file handle and the access mode Open Modes are gt R Open for read requires the file to already exist in the current media and the current accessed folder gt VV Open for read will create a new file and give write privilege to it If the file already exists it will be erased first then will open a new one for write A Open for append is similar to write with one exception If the file already existed it will be opened and the incoming data will be appended at the end Important Note The file name must be in standard short name 8 3 formation Note USBwiz currently has 4 available file handles Format OF nM gt foldername Open file fo dername to file handle n with access mode M which be R W or Example
23. coi t e eo code 22 GO RS READ SEO TOR zu S aypa ote aya aki sb kuskiy p assets 23 G WS WRITE SECTOR GI iiie a osa ee o Pestis 23 G S EM NIGURIT SYSTEME seo arsonist 24 G 6 DS DEVICE SWITCH neraino 24 GNIS GET MEDIA unupa ukuka a e rir 24 8 6 OF Quick FORMAT MEDA eee 24 8 9 INiiAatizE FILES AND FOUDERS iai casa kis beca daa ree Sessa n ren iid sana ias 25 8 TO NF GET NEXT DIRECTORY ENTRY ise Sis auti emat curtes Ce ducc sva bee send Rss n EUR 25 DIRECTORY 252 re ete en ec abet Rain t rtm bd 25 8 12 CD CHANGE DIRECTORY uzi maqqa pacto erred pcc up beg as 25 6 13 RD REMOVE DIRECTORY eoi a ne 26 8 14 OPEN FILE FOR READ WRITE OR 222 2255 55325 5 225555552555552255555355555525555522504552 26 Copyright 2006 GHI Electronics LLC 2 of 40 User Manual
24. ds The baud rate can be set to many different standard baud rates BR command sets the internal divider registers of the UART hardware This way any possible baud rate can be To calculate the divider value use OSC 4 BaudRate 16 The OSC we use on USBwiz is 14745600 baud rate value is lost on reset and UART goes back to 9600 Format BR vvvv vvvv WORD HEX Baud Rate Divider Example BR 0020 Baud Rate is 115200 Some common values Baud Rate Divider in decimal Divider in HEX 9600 3 4 7 0180 Copyright O 2006 GHI Electronics LLC 22 of 40 User Manual USBwiz USB Hosting for Every Product 115200 32 0020 921600 0004 To be used with BR command 8 3 RS Read Sector Format1 RS ssssssss Read Sector from the current File System Media 100 55555555 HEX DWORD sector address 100 Example1 RS 0 Read Sector 0 Format2 RS C ssssssss Read Sector from Specific Attached Media even m is Mass Storage Device Handle 55555555 DWORD sector address 100 100 Example2 RS U0 gt 1 Read Sector 1 from attached USB Mass Storage Device Media to Mass Storage Handle 0 8 4 WS Write Sector Format1 WS ssssssss Write to Sector from the current File System 100 Media 512 Bytes must be ssssssss HEX DWORD sector address sent to USBwiz 100 Example1 WS 0 Write to Sector 0 Format2 WS gt 55555555 Write to Sector from Specific Attached Media
25. e SD organization FAT file system is a patent of Microsoft Corporation Licensing fee for using FAT file system must be paid by companies who wish to use FAT file system in their products For more information visit Microsoft s website http www microsoft com mscorp ip tech fat asp Please note that our products don t support long file names and most likely you don t need to pay any licensing but you should contact Microsoft for more details GHI Electronics LLC provides a technology that allows users to read and write raw sectors and read and write FAT files If FAT functions are used by USBwiz users then they must contact Microsoft for licensing GHI Electronics LLC should NOT be liable for any unpaid licenses USBwiz uses USB through USB host controllers no USB licensing is necessary Copyright GHI Electronics LLC Trademarks are owned by their respective companies ALFAT pALFAT ALFATxp USBwiz and USBizi are trademarks of GHI Electronics LLC M DISCLAIMER IN NO EVENT SHALL GHI ELECTRONICS LLC OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES 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 IABILITY OR TORT INCLUDING NEGLIGENCE OR OTHERWISE ARISING IN ANY WAY OUT OF THE USE OF THI
26. ectronics LLC 19 of 40 User Manual USBwiz USB Hosting for Every Product First the HID must be registered like any other USB device We will initialize HID which is Attached to USB port 1 UH 1 Then USBwiz will output Data size that is send by the HID which is 4 Bytes for Mice and 8 Bytes for Keyboards Now the USBwiz is ready get Data from HID which can be performed by Read HID RH 1 Now we can repeat RH 1 to read more data from the device It is normal for HR to return code NO DATA USBwiz also contains a command for continuous reading of the HID device HP is similar to HR but HP except that it will keep looping and returning the HID data if available To terminate the loop send any command to USBwiz 7 4 USB Printers USBwiz Printer driver support those that have Interface with unidirectional protocol USBwiz doesn t know anything about printer protocols and scripts It simply sends your data to the printer Some printer support pure ASCII and prints it and some don t You can use your PC with installed printer to print to file option from the print window With this option windows will save the data that it would have sent to the printer to a file This file can be saved on a media and USBwiz can read it and send it to the printer This will guarantee the printer will work for your first test First command to be used is USB register printer UP UP 0 Now you can preform any of the command such as reseting the
27. er Manual USBwiz USB Hosting for Every Product 8 USBwiz Commands Set All commands below are entered in ASCII We choose to use ASCII to simplify troubleshooting and to allow humans to enter commands easily A special case is when accessing the data inside or outside a file When writing reading to from a file or USB Pipe USBwiz will use any kind of data Basically what you send is what goes on the file It doesn t have to be ASCII When USBwiz is done processing a command it will return an error code in the form Ixx lt CR gt where xx is the error number Also some commands require returning some extra information Returned data will come after the symbol unless noted otherwise You can send multiple commands to USBwiz until its FIFO is full indicated by BUSY or RTS USBwiz will take the commands in one at the time process them and send responses for each one Always terminate commands with carriage return character Note in all commands descriptions of their outputs will consider the successful executing of the command 8 1 VR Get Version Number It prints the version number of USBwiz firmware Note that this version is not same or related to the version number of the boot loader nor the OEM boards we offer The return value is always in the form USBwiz VR VR USBwiz 2 20 8 2 BR Set UART Baud Rate UART defaults to 9600 at power up This is extremely slow but some systems don t support faster bau
28. example void SendSPItoUSBwiz int8 if c PutSPI 0xFE PutSPI 0x00 else if OxFE PutSPI 0xFE PutSPI 0xFE Jelse PutSPI c 2 Note that this example ignores the incoming data from SPI and it shouldn t be used Please consult the code library we provide Important USBwiz requires the following in order for SPI to work SCK is output from your system Copyright 2006 GHI Electronics LLC 16 of 40 User Manual USBwiz USB Hosting for Every Product SCK is idle high SCK is lower that 7Mhz 1 75 in boot loader Data is shifted out MSB first Data is shifted on the rising edge 6 4 12C Interface Mode Four pins are needed for I2C communication The USER 2 and USER 2 SDA are the two I2C bus lines 2 DATARDY and I2C BUSY lines work exactly the same way as SPI DATARDY and SPI BUSY work USBwiz runs in slave I2C mode always The slave address of USBwiz is 4 This address is fixed and can t be changed Copyright 2006 GHI Electronics LLC 17 of 40 User Manual USBwiz USB Hosting for Every Product 7 USBwiz Functions The commands and response in USBwiz are made in a way where they can be understood and read by a human and can be easily parsed by any simple 8 bit micro Each command is 2 characters Some commands take parameters and others don t For example VR command doesn t take
29. ey are used to get information from or send commands to USB devices Control Transfers are sent to Endpoint 0 Some Requests are Standard and required by every USB device Requests can be Device Request USB class specific requests or Vendor specific requests Bulk Transfers Large data blocks are transferred using Bulk Transfers There is no guarantee on when the data will be transferred but data integrity is guaranteed through CRC calculations It can be used for sending data to printer or thumb Flash devices Interrupt Transfers Basically Interrupt Transfers are small Bulk transfers that guarantee timing It is the responsibility of the software to constantly read Interrupt Pipes periodically Interrupt pipes are used in mice keyboards for example Isochronous Transfers When data integrity is not important but speed must be guaranteed Isochronous Transfers are used For example USB sound cards don t Copyright O 2006 GHI Electronics LLC 5 of 40 User Manual USBwiz USB Hosting for Every Product care if a value was received incorrectly as in most case the user wouldn t notice it But it is very important that the sound card receives the data continuously USBwiz supports Control Bulk and Interrupt Transfers Copyright 2006 GHI Electronics LLC 6 of 40 User Manual USBwiz USB Hosting for Every Product 2 From USBwiz V1 to USBwiz V2 This section is related only to users who have experience with USB
30. f USB Devices as CDC Format US p pis the port number Example US 1 Register USB CDC device on port 1 8 35 SR Read Serial Device This command reads out the internal OUT buffer of the Serial Device Format SR p Read Serial Device buffer on port p 100 Data Size is HEX Byte 100 Example SRO Read CDC buffer on port 1 100 Copyright 2006 GHI Electronics LLC 33 of 40 User Manual USBwiz USB Hosting for Every Product The device has 6 bytes Hello 100 Note Sometimes multiple SR commands must be passed to flush out all the data the buffer like when you first get the echo of the command and the get the result of it It is a good practice to keep reading the Serial Device buffer periodically 8 36 SW Write to Serial Device Format SW p gt ss p is the port number 100 ss is Byte data to be sent to Serial Device Data to device 100 Example SW 0 gt 3 Write 3 bytes to serial device on port 0 100 AT lt CR gt Send AT and follow it by carriage return OxOD 100 8 37 UF Register Device USBwiz has an internal FTDI driver that can read devices with default or specific vendor and product IDs Format1 UF p p is the port number PID and VID are the default FTDI s 0x6001 and 0x0403 Format2 UFp gt vvvv gt xxxx p is the port number vvvv is Vendor ID pppp is Product ID Example UF 1 Register device with de
31. fault VID and PID connected on port 1 8 38 Set FTDI Baud Rate Format FQ bbbb bbbb is Baud rate value Example FQ 4138 Set Baud Rate to 9600 Some calculated baud rate values referenced from FTDI Specifications Baud Rate Actual Baud Rate Value Copyright O 2006 GHI Electronics LLC 34 of 40 User Manual USBwiz USB Hosting for Every Product CO4E 38400 0034 57600 001A 115200 000D 230400 8 39 FD Set FTDI Data Format not ready Format DQbps_ bis bits number typically 8 p is parity 0 no parity 1 Odd 2 Even 3 Mark 4 Space S is stop bit count 01 11 5 23 Example DQ 800 Number of bits is 8 No parity bit one Stop bit 8 40 FH Set FTDI Handshaking Mode not ready Format FQ N No handshaking FQR Hardware Handshaking using DTR DSR lines FQS Hardware Handshaking using CTS RTS lines Format2 FQ X NF Xon Xoff Handshaking where N is Xon character and F is Xoff character 8 41 UL Register Prolific Device not ready USBwiz has an internal Prolific chipset driver that can read devices with default or specific vendor and product IDs Format1 UL p p is the port number PID and VID are the default FTDI s 0x6001 and 0x0403 Format2 ULp vvvv xxxx p is the port number vvvv is Vendor ID pppp is Product ID Example UL 1 Register Prolific device with default VID and PID
32. firmware from USB port 0 and LQUC will load it from USB port 1 Write one sector to internal Follow W by the sector number then 512 FLASH bytes of sector data Transaction must be terminated by a checksum byte Checksum byte is calculated by adding all 512 data bytes Returns the loader version Returned value is ASCII Note The boot loader is entirely separate program that loads USBwiz firmware The version number of the boot loader may not match the version number of USBwiz Copyright O 2006 GHI Electronics LLC 13 of 40 User Manual USBwiz USB Hosting for Every Product Important Note New USBwiz chips come with no firmware on them 5 4 Boot Loader Error Codes The boot loader error codes are the same as USBwiz error codes Copyright 2006 GHI Electronics LLC 14 of 40 User Manual USBwiz USB Hosting for Every Product 6 Commanding with USBwiz 6 1 Selecting an Interface USBwiz uses UART SPI or I2C to communicate with any external microcontroller At power up USBwiz samples MODEO and MODE 1 to determine what interface to use The MODE pins have built in pull up resistors to default the pin to 1 Do not connect these pins to VCC leave unconnected for 1 or connect to GND for 0 USBizi special version and not for public samples SPI SCK and SPI SSEL to determine what interface to use The following table describes the states SPI SSEL amp SPI SCK o 0 JURT 0 1 Forcebootioader i
33. her media at the same time access Storage Media the media need to be mounted using Fat Mount command FM where is media type that can for SD 0 for USB port 0 and 1 for USB por1 Once the device is mounted you can use any of the file access commands Example Mount File System 0 on SD MMC FMS 100 MD FOLDER 100 USBwiz supports the original FAT system where files 8 characters long with extension that is 3 characters long No long file name is supported This allows us to speed up the file access time and simplify the user s work Copyright 2006 GHI Electronics LLC 18 of 40 User Manual USBwiz USB Hosting for Every Product 7 1 1 Directories folders Folders are supported by USBwiz Use Change Directory command CD to move over Folders MD USBWIZ lt Create USBWIZ folder CD USBWIZ lt Change the curent folder access to USBWIZ folder 7 1 2 Files Files can be opened for read write or append Opening a file for read requires that the file exists on the media Opening a file for write requires that the file doesn t exist on the media If the file that is being open for read already exists on the media USBwiz will erase the old folder Opening a file for append will add data to a file if it exists If the file doesn t exist then a new file will be made With USBwiz you can open up to 4 files at the sa
34. hree 100 files successfully with no errors occurrence Copyright 2006 GHI Electronics LLC 28 of 40 User Manual USBwiz USB Hosting for Every Product 8 20 RW Read from File Write to other file This command is very powerful and fast If we have two files one is opened for Read and the other for write this command allows copying data from a file to another even if they were opened in different storage media devices Format RW rw gt ssssssss_ Read Mode File Handle 100 w Write Mode File Handle 2 55555555 HEX DWORD desirable data size be 100 read and written HEX DWORD actual written data from file size Example Suppose that file is opened for read and represented in handle 0 and another file is opened for write and represented in handle 1 RW 1 0 gt 100 Read 256 bytes from file 1 and write them into file 0 100 USBwiz accepted the command ac bytes are valid 100 errors has occurred 8 21 SF Split file SF splits a file into 2 new files The files can be opened on different drives or the same drive It requires one file to be open for read and 2 other files to be open for write Files handles will be automatically closed after successful executing of the command Format SF n gt m o ssssssss N Source Read Mode File Handle 100 First part destination Write Mode File Handle o Second part destination Write Mode File Handle 100 55555555 HEX DWO
35. lease you can simply download the file from our website and using simple commands you can load it on USBwiz At power up USBwiz s boot loader takes control and checks the mode pins MODEO and MODE1 The mode pins are set in interface mode bootloader makes a jump to the firmware to start executing 5 2 Using the Boot Loader The easiest way to update USBwiz is by placing the new firmware SD card or a USB mass storage device Then connect the media to USBwiz and send the boot loader BL command to load the new firmware Note that these commands are sent to a functional firmware and they are firmware commands If the firmware didn t execute there could be a need to set the mode pins in force boot loader mode In this mode the boot loader runs in UART mode at 9600 and will accept the boot loader commands The firmware update file must be placed in the root directory We recommend formatting the media first If needed user can update the new firmware by sending it over SPI 2 or UART All commands return followed by the error number 00 means no error The boot loader responds with Wxx CR on every sector write where xx is the sector number 5 3 Boot Loader Commands Command Use Notes NEM a RN If Boot loader return BL then firmware reprogramming USBwiz is required Load firmware file from The x is the drive letter For example connected media LQUA will load the firmware from MMC SD card LQUB will load the
36. me time using file handles This is not how many files USBwiz can open on a drive USBwiz can open thousand of files same as your PC Handles are used for fast access to a file If a user needs to log data to 2 files at the same time VOLTAGE LOG and CURRENT LOG file handles become very useful To do so open VOLTAGE LOG under handle 1 and CURRENT LOG under handle 2 Now start sending your data to handle 1 and 2 instead to the file name Handles can even point to files on different medias because USBwiz contains 3 independent FAT cores 7 2 USB Mass Storage USBwiz has an internal USB Mass Storage Driver that can control two Mass Storage Devices at the same time FM 0 or FM 1 will automatically initialize the USB device and return the available LUNs on the current device LUN is the Logical Unit Number and it is used on card readers that have more than one card slot The card reader is one USB device but it has multiple LUNs In case there a requirement to access a LUN FM commands can be used with the LUN extension FM p gt l where p is the port number and is the LUN number FM command alone will use LUNO FM 0 00 03 This device supports 4 LUNs in this example 00 7 3 USB Human Interface Device This USB class includes vast range of HID devices USBwiz HID driver support those that has only output interrupt Endpoint for HID Report sending This covers all keyboards all mice and almost all joysticks Copyright O 2006 GHI El
37. nces USBwiz could fail writing all the data and it will inform the user of the data loss Finally WF returns another error code You can send as many WF as you need to write more data to the file We recommend sending small block of data around 100 bytes Format WF n gt ssssssss n File Handle 100 55555555 HEX DWORD desirable data size be User sends data written HEX DWORD actual written data to file 10 Example WF 1210 Write 16 bytes to the file opened for handle 1 100 USBwiz accepted the command 12345678908bcd 16 bytes of data to go into the file ef USBwiz was able to write 16 bytes No errors has occurred 100 Related Commands OF CF and FF 8 19 SW Shadow Write to multiple Files This command is similar to WF command except that it writes the same data into two or three files simultaneously Format 1 SW n m gt ssssssss N First File Handle 100 Second File Handle User sends data 55555555 HEX DWORD desirable data size to be 21 100 written 100 HEX DWORD actual written data to file size Format 2 SW n m o gt ssssssss Same as the previous Format except for having a 100 third shadow o Third File Handle User sends data 100 12100 33 100 Example SW 1 0 3 gt 10 Write 16 bytes to the file opened for handle 1 0 100 3 1234567890abcdef USBwiz accepted the command 100 16 bytes of data to go into the file 100 USBwiz was able to write 16 bytes to the t
38. ne endpoint that has no descriptor with is Endpoint 0 This one is common endpoint that is available in every USB device and opening a pipe to this endpoint is important for USB deriver to control the device since standard class vendor specific requests are transferred on this pipe USBwiz takes the role of USB host driver and provides the functions to fully control USB devices and can manage multiple pipes simultaneously 1 3 2 Transfer Speeds USB 2 0 defines three different transfer speeds according to Device Low Speed devices with speed of 1 5 Mbps which include keyboards mice joysticks and other devices that does not require high transfer data rate Full Speed devices with speed of 12 Mbps For example Flash disks Communication devices and others This is the highest speed supported by USB1 1 High Speed devices with speed of 480 Mbps which is defined in USB 2 0 Specification only High Speed is more suitable for Disks Communication devices and video devices High Speed devices are required to be backward compatible with USB1 1 therefore supporting Full Speed Since USBwiz drives USB 1 1 Host Controller so it supports Low Speed and Full Speed only and capable of running High Speed devices in Full Speed compatibility mode 1 3 3 Transfer Types There are 4 types of data transfer which are classified in a way to suit the most common cases of communication between the host and the clients Control Transfers Th
39. o a certain position less than its size and omits the data after that position File must be opened in Read Mode File handle will be automatically closed after successful executing of this command Format ZF n gt ssssssss File Handle ssssssss HEX DWORD desirable data size to be written Example ZF 1 gt 10 Resize the file to 16 bytes supposing that its original size is less than 16 bytes 8 25 DF Delete File Format RD filename filename follows the short name formation Example RD Remove the file with name TEST TXT TEST TXT 8 26 IF Find File or Folder This command search for a specific file or folder name in the current folder and print out file s major information which includes size attributes and date amp time of modification Format IF filename filename follows the short name formation 100 HEX DWORD File Size Copyright 2006 GHI Electronics LLC 30 of 40 User Manual USBwiz USB Hosting for Every Product AA HEX Byte File Attributes 100 HEX DWORD time and date structure Example IF TEST TXT File has been found and its size is 3892 100 bytes with no special attributes E 00 Last modification time is 00 00 00 date is 1 1 2006 File Attributes are byte Standard Attribute Structure FAT system 7 6 5 4 3 2 2 0 Reserve Archiv Folde Volume Syste Hidde Read Only d e r ID m n
40. on aa 31 8 28 UH Reeister USB HUMAN INTERFACE 2000 31 8 29 RE READ REPORT iuit rl uuu caida a ee eco eue 32 ROETE USB ERNIE R ieu e eain sates teen nome suc eaput 32 JP Re Sei Be re INE Roe za u m sed ames phyla una bua Ma nq opel tear 32 ES ETO PRINTER OTAN br ioter eunt tabo S headless 32 DEI TO USE PRINTER 1G PRIN Yu t um tione stetur 33 op TSEGBIER OERAL COMMUNICATION DEVICE uuu 33 0 39 READ OERAL IGE S Suma ro tu shot A R 33 8 44 UL PROUFIC DEVICE NOT READY uuu 35 842 SILABS DEVIGE NOT BEADY sas 36 u pu 37 A
41. printer PR PRO The actual print command PP will accept up to 255 bytes of data of every transfer You can safely call the PP more than once PP 0 4 00 1234 00 Get Printer Status Command PS is used to Get Printer Standard Status Byte which is identical to status byte that is usually returned from Parallel Port printers 7 5 USB Serial Devices USBwiz supports many serial USB devices Communication Device standard USB class CDC 02 is one of them This can be a USB modem or a cell phone AT commands can be used to dial numbers send SMS messages and transfer data on some of the CDC USB modems Check your cellphone manual for a list of supported AT commands Other serial devices are Prolific Silabs FTDI serial UART to USB converters Most USB GPS modems out there use Prolific chipset This allows you to Copyright 2006 GHI Electronics LLC 20 of 40 User Manual USBwiz USB Hosting for Every Product connect a USB GPS to USBwiz Same for Silabs and FTDI chipsets Many devices use one of these chips and therefore they can communicate with USBwiz as easy as any other USB devices There are independent USB register and configuration commands for every one of the supported devices but they all share the Serial Read and Serial Write commands UF 0 Register an FTDI device 100 0 gt 4138 Set the baud rate to 9600 100 SW 0 gt 4 Send 1234 to FTDI 100 1234 100 Copyright 2006 GHI Electronics LLC 21 of 40 Us
42. roller and MOSI is the data line going from your microcontroller to USBwiz The other two pins are used for handshaking they are DATARDY and BUSY DATARDY pin goes high when there is data in the USBwiz s SPI buffer When BUSY is high a user must not send any new data to USBwiz The boot loader in SPI is half duplex When DATARDY pin is high USBwiz will not accept any commands and will assume the SPI transaction is for reading the data therefore the incoming data will be discarded The other handshaking pin is BUSY Before sending any command to USBwiz this pin must be checked and data can be sent only when BUSY pin is low On the other hand the firmware runs SPI in full duplex mode When SPI is full duplex USBwiz will accept any incoming data while it is sending simultaneously If USBwiz has no data to send back it will send NDT No Data Token The NDT is Oxff and is completely ignored by USBwiz and should be ignored by your system as well When reading data from USBwiz but there is nothing to send use NDT In some rare cases there could be a need to send OxFF writing the hex value OxFF not ASCII OxFF This is resolved by using HDT Half Data Token HDT is the value OxFE Whenever USBwiz or your system sees HDT it must wait for one more byte to decide what that value actually is HDT followed by another HDT results in OxFE otherwise it is OXFF Keep in mind OxFF is always ignored even if it came after HDT Here is a simple C code
43. uct Description Value ERROR HCD PTD COMP DATA OVERRUN 0x68 ERROR PTD RESERVED1 ERROR USB DEVICE NOT CONNECTED Ox6F ERROR USBD HANDLE INUSE 0x72 ERROR_USBD_TIMEOUT 0x76 ERROR USBD ERROR USBD HANDLE CORRUPTED ERROR_USBD_DESCRIPTOR_CORRUPTED Ox7A ERROR DESCRIPTOR NOT FOUND Ox7B ERROR USB FOUND Ox7C ERROR USB MASS STORAGE DEVICE NOT READY 0x90 ERROR SPC INVALID SENSE 0x93 ERROR SPC NO ASC ASCQ 0x94 ERROR USB MASSSTORAGE NOT FOUND 0x95 ERROR COMMANDER FAILED TO OPEN MEDIA OxA7 ERROR AMETER COMMANDER INCORRECT PAR 8 Copyright 2006 Electronics LLC 38 of 40 User Manual USBwiz USB Hosting for Every Product Description Value ERROR USB COMMANDER CONFIG LOADED ERROR CHECK SUM ERROR FILE SYSTEM NOT MOUNTED ERROR FTDI DEVICE NOT REGISTERED OxB1 ERROR INCORRECT VENDORID 0 2 ERROR INCORRECT PRODUCTID OxB3 ERROR PRINTER NOT REGISTERED OxB4 HID HAS NO DATA ERROR COMMANDER UNKNOWN ERROR Copyright O 2006 GHI Electronics LLC 39 of 40 User Manual USBwiz USB Hosting for Every Product Appendix C Licensing Each uALFAT chip comes with unconditional license of use from GHI Electronics LLC There are many patented technologies utilized in uALFAT that must be account for The SD card is used in MMC compatibility mode therefore no license is required from th
44. wiz version 1 USBwiz V1 was a great success for over a year Knowing exact customer needs helped us define the new version of the firmware The new firmware will load on any USBwiz chip without anything special There is no need to make any change on your current circuit board designs but you may want to add the new pins if needed for example the SD card detect pin For firmware version 2 xx we provide a full C library that does all the work for you Note that updating the firmware will not update the boot loader There will be a separate document explaining how to update the boot loader Copyright 2006 GHI Electronics LLC 7 of 40 User Manual USBwiz USB Hosting for Every Product 3 What is USBwiz 3 1 Introduction USBwiz is a single chip that performs all work needed for USB hosting and FAT file system USBwiz connects to a USB host ISP1160 one side and to your product on the other side PIC AVR etc Using simple commands over I2C SPI or UART serial you can talk to almost any USB device on the market If the device falls under a supported USB class no USB knowledge is necessary USBwiz does the work This includes many of the shelf devices such as mouse keyboard joystick USB memory printers modems cell phones Wi Fi 802 11 and many USBwiz includes FAT file system Microsoft s FAT file system allows your product to create files on a media card SD or MMC or on a USB storage device thumb drive or
Download Pdf Manuals
Related Search
Related Contents
LGH-N65RS の取扱説明書を見る 取扱説明書 - ダイワインダストリ FICHA TÉCNICA DE REVUELTO GAMBA, AJETE Requisiti in detaglio Klicken Sie hier für die TowerFeed-Anleitung zum LaserJet Neil Hughes Level 2, Vulcan House (Steel) Sheffield S3 8NU 取扱説明書 電源用SPD LP-CW2-H Philips SHH1810 Headphones to phone connector User Manual Guía del usuario de CA Nimsoft Monitor Mobile Copyright © All rights reserved.
Failed to retrieve file