⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 NXP LPC24xx USB Hsot Lite
💻 TXT
字号:
-------------------------------------------------------------------------------------------------------------------
				             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.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -