UsbHostLite-lpc2468

所属分类:嵌入式/单片机/硬件编程
开发工具:Others
文件大小:1117KB
下载次数:59
上传日期:2009-07-23 22:37:16
上 传 者fudeyun
说明:  keil编译器,lpc2468的usb host stack,目前仅支持massstorage。结构很不错,方便扩展。对于希望学习usb host的同志有所帮助。
(keil compiler, lpc2468 of usb host stack, currently only support massstorage. Very good structure to facilitate the expansion. Who want to learn usb host comrades help.)

文件列表:
UsbHostLite-lpc2468\an10703.pdf (1138614, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\LPC2300.s (20345, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\Obj\UsbHostLite.plg (186, 2009-07-16)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Fat\usbhost_fat.c (42996, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Fat\usbhost_fat.h (7189, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Host\usbhost_lpc2468.c (28716, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Host\usbhost_lpc2468.h (14781, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Include\usbhost_cpu.h (1365, 2008-02-07)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Include\usbhost_err.h (2495, 2008-02-07)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Include\usbhost_inc.h (1327, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Main\usbhost_main.c (5977, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Main\usbhost_main.h (1965, 2008-02-07)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\MassStorage\usbhost_ms.c (14969, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\MassStorage\usbhost_ms.h (4227, 2008-02-07)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Uart\usbhost_uart.c (4310, 2008-02-07)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Uart\usbhost_uart.h (2070, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHostLite.Opt (3003, 2009-07-16)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHostLite.Uv2 (3552, 2009-07-16)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHostLite_LPC2468 OEM Board.dep (2025, 2009-07-16)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHostLite_Opt.Bak (2332, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHostLite_Uv2.Bak (3721, 2008-02-11)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Fat (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Host (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Include (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Main (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\MassStorage (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost\Uart (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\Lst (0, 2008-05-06)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\Obj (0, 2008-05-06)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0\UsbHost (0, 2008-07-22)
UsbHostLite-lpc2468\UsbHostLite-Beta-1.0 (0, 2009-07-16)
UsbHostLite-lpc2468 (0, 2009-07-16)

------------------------------------------------------------------------------------------------------------------- USB Host Sample for LPC2468EA ------------------------------------------------------------------------------------------------------------------- 1. What is this sample ? This sample demonstrates how to access the files on "USB Flash drive" connected to USB Host port on LPC2468. When you connect a "USB Flash Drive" to the USB host port on LPC2468 board, the USB host sample mounts the file system on the "USB Flash Drive". 2. How to setup the sample ? To run the mass storage sample, you need the following. . Embedded Artists LPC2468 OEM board . Keil ULink USB-JTAG adapter for flash programming. . Keil uVision3 IDE to open the project. . Serial cable to see the log messages on the Hyper Terminal. Jumper Settings of the LPC2468 board: U2 as USB Host P0.14 2-3 P1.30 2-3 USB-B+ 2-3 USB-B- 2-3 3. How to see the log messages on Hyper Terminal ? Connect a serial cable to UART #1 on the LPC2468 board. Configure the Hyper Terminal settings as 115200-N-8-1 and "No flow control". Note: The following macros must be defined in the usbhost_lpc2468.h file. #define PRINT_Log UART_Printf #define PRINT_Err(rc) UART_Printf("ERROR: In %s at Line %u - rc = %d\n", __FUNCTION__, __LINE__, rc) 4. The user is provided with three sample functions, Main_Read(), Main_Write() and Main_Copy() defined in usbhost_main.c. If the user calls Main_Read(), the host sample reads data from file "FILENAME_R" into a buffer. If the user calls Main_Write(), the host sample writes data to file "FILENAME_W" from a buffer. If the user calls Main_Copy(), the host sample copies data from file "FILENAME_R" to file "FILENAME_W". Note: The file name defined by macro "FILENAME_R" must be present on the device (usb flash drive). 5. How to download and run the demo ? 1. Connect the power supply by using USB or optional power supply. 2. Connect the Keil U-Link USB J-Tag 3. Connect the serial cable at UART#1 to see the log messages. 4. Open the hyper terminal and make settings as shown in Hyper terminal settings. 5. Open the SampleUsbHost directory. 6. Open the project SampleUsbHost.Uv2 by double clicking on it. 7. Goto project tab and click 'Rebuild all target files' to compile the project. 8. Goto Flash tab and click 'Download'. 9. Connect a USB flash drive at USB host port. Note: Make sure that all the jumper settings are as shown in SampleUsbHost.jpg. If you have any questions contact : Surendra Ippagunta ONCHIP Technologies LLC surendrai@onchiptech.com Disclaimer ========== This software is provided AS-IS by NXP Semiconductors. NXP Semiconductors does not support or warrant the software contained herein for any purpose other than for informational use. Please contact OnChip Technologies LLC for further assistance including support options and other embedded USB host/device/OTG stacks.

近期下载者

相关文件


收藏者