MAX3421E_EVKIT-1_Software

所属分类:USB编程
开发工具:C/C++
文件大小:62KB
下载次数:32
上传日期:2009-10-26 21:16:11
上 传 者realist
说明:  MAX3421 SPI转USB接口芯片 使用参考代码
(MAX3421 USB Peripheral/Host controller with SPI interface demo code)

文件列表:
MaxUSBLab10\3420_HIDKB.c (12677, 2006-11-14)
MaxUSBLab10\3421_Host.C (26335, 2008-01-07)
MaxUSBLab10\boardtest.c (2597, 2006-11-14)
MaxUSBLab10\HIDKB_enum_tables.h (5740, 2006-11-14)
MaxUSBLab10\Keil_MCB2130.h (727, 2006-09-15)
MaxUSBLab10\MAX3421E.h (8784, 2006-11-14)
MaxUSBLab10\MaximUSBLab.hex (29571, 2006-11-15)
MaxUSBLab10\MaximUSBLab.htm (61118, 2006-11-15)
MaxUSBLab10\MaximUSBLab.lnp (277, 2006-11-15)
MaxUSBLab10\MaximUSBLab.map (65629, 2006-11-15)
MaxUSBLab10\MaximUSBLab.Opt (2373, 2006-11-15)
MaxUSBLab10\MaximUSBLab.plg (231, 2006-11-15)
MaxUSBLab10\MaximUSBLab.sct (429, 2006-10-06)
MaxUSBLab10\MaximUSBLab.tra (1171, 2006-11-15)
MaxUSBLab10\MaximUSBLab.Uv2 (3005, 2006-11-15)
MaxUSBLab10\MaximUSBLab_Opt.Bak (2383, 2006-11-15)
MaxUSBLab10\MaximUSBLab_Target 1.dep (2976, 2006-11-15)
MaxUSBLab10\MaximUSBLab_Uv2.Bak (3005, 2006-11-15)
MaxUSBLab10\Serial.c (1154, 2006-10-04)
MaxUSBLab10\SPI_FNs.c (12219, 2006-11-14)
MaxUSBLab10\SPI_FNs.h (4127, 2006-11-14)
MaxUSBLab10\usb.h (2691, 2006-11-14)
MaxUSBLab10 (0, 2008-01-07)

******************** MAXIM USB Laboratory ******************** // // Updated January 7, 2008 // The file "3421_Host.C" was updated to correct an error. For proper operation, the first // thing the processor should do is put the MAX3421 into full-duplex mode. The routine // "Reset_Host" was called before this was done, so the software could hang in this // routine. "Reset_Host" call has been moved to after the command to put the MAX3421E // in full-duplex mode. No other files are changed. // This project was constructed from the downloaded Keil demo code mdk303a.exe, available on the Keil web site. If you have a Keil ULINK box, be sure also to download the USB driver from the Keil web site. The USB driver downloaded and tested with this code has the file name "3071.zip". This project uses two files that are not supplied with the Maxim code: C:\Keil\ARM\RV30\Boards\Keil\MCB2130\Blinky\startup.s C:\Keil\ARM\RV30\Boards\Keil\MCB2130\Blinky\retarget.c If you installed the Keil demo code in the default C:\Keil directory this project should compile without incident. If you installed the Keil demo code in a directory other than C:\Keil, however, this project will not find these two file paths and the compile will fail. If this is the case, in the Project Workspace window to the left, delete the references to startup.s and retarget.c. (Right-click the file name, and select "Remove File...".) Then right-click on the Startup Code folder, select "Add Files...", navigate to the Blinky directory shown above, and add the startup.s file (select "show all file types" to see this file). Then do the same for the System Calls folder--right click it, navigate to the retarget.c file above, double-click it. Be sure to use these EXACT path names--there are many Blinky folders in the Keil directory and most of them are not compabible with the MCB2130 board. If you have a different Keil directory structure, you need to locate the two files above and add them to the project. Make sure they apply to the MCB2310 board. ******************************************************************************* This project requires a Keil MCB2130 board and a MAXIM MAX3421 EVKIT-1 board. The Maxim board has a MAX3421E USB host/peripheral controller, a MAX3420E USB peripheral controller, and lots of connectors, buttons and lights. The file 3421_Host.C implements some example USB host functionality, and the file 3420_HIDKB.C implements a USB peripheral device, an automatically-typing HID keyboard. These modules run concurrently, the host as the background program and the peripheral as an interrupt service routine. About optimization levels: This project is set for optimization level 0, thumb-only mode to keep it under the 16KByte limit of the Keil demo version of uVision3. Note that the program uses the printf function, which with the addition of many text strings, uses a significant portion of the memory. It also contains a call to a board self-test routine that can be removed by commenting out the call in main{}. Although you can do a lot of evaluation work with this setup, it is highly advisable to upgrade to the full Keil toolset if you have a production application. (This endorsement is from the Maxim guy, not the Keil guy.) Compiling with 0 errors and 1 warning is normal. For MCB2130/uVision3/ARM questions, please contact Keil. For MAX3420E or MAX3421E questions, please contact Maxim. Note: Here's the error you get if you compile without adding the files mentioned above: MaximUSBLab.sct(7): error: L6236E: No section matches selector - no section to be FIRST/LAST.

近期下载者

相关文件


收藏者