|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機 | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計 | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
LPC214X USB虛擬串口的例程(USB轉(zhuǎn)串口)測試OK好用. |
| 作者:boy123 欄目:ARM技術(shù) |
LPC214X USB虛擬串口的例程(KEIL工程)(測試通過,好用..) 包括PC端驅(qū)動源程序及LPC214X端的源程序 多一個學(xué)習(xí)USB的例程...來自飛利普網(wǎng)站 下載地址是: http://www.mcu123.net/bbs/dispbbs.asp?boardID=28&ID=1264&page=1 簡介: The Virtual COM PORT project is a DEMO program for the Keil MCB2140 Board using the PHILIPS LPC214x Microcontroller. It DEMOnstrates an USB Virtual COM PORT based on a customized USB host driver. Once the Virtual COM PORT DEVICE driver is INSTALLed on the LPC214x. Unplug then replug-in the USB CABLE, the PC will detect the USB DEVICE and look for corresponding USB host driver. The host driver came with the SAMPLE SOFTWARE is under "PLPU-S2K" directory. The PC will INSTALL two virtual COM PORTs one after another on the PC. Once the INSTALLation is done, on the PC System/Hardware/Device Manager/PORTs(COM&LPT), they will be two more virtual COM PORTs appeared as "PHILIPS USB to Serial ADAPTOR(COMx)". NUMBER "x" is not fixed as different PC configuration may have different "x" displayed on the DEVICE manager. The USB host driver assigns "x" dynamically based on the existing COM PORT configuration of the SYSTEM. There are two ways to TEST the USB Virtual COM PORTs: (1) With serial CABLE: open two Hyperterminal windows, One uses the "PHILIPS USB to Serial ADAPTOR(COMx)", the smaller NUMBER "COMx" will communicate with COM0 on MCB214X, the larger NUMBER "COM(x+1)" will communicate with COM1 on MCB214X. If you connect PC COM PORT COM0 to MCB214X COM0, open "COM0" and "COMx". If you connect PC COM PORT COM0 to MCB214X COM1, open "COM0" and "COM(x+1)" Please note, if use COM0 of MCB214X, be sure to remove two jumbers, "RST" and "ISP" on MCB214X. Type in data from COM0 will echo on "COMx" and type in data from COM1 will echo on "COM(x+1)", visa versa. So, this is bi-directional communication between the physical COM PORT 0 and 1 on MCB214X and the virtual COM PORTs, COMx and COM(x+1) on host PC. (2) Without serial CABLE: go to vcomuser.h, change LINE "#define NO_UART_CABLE 0" to "#define NO_UART_CABLE 1", recompile the project and update the FLASH. Once the FLASH has been updated. Unplug and replug-in the USB CABLE to reset the MCB214X board. Open one or both virtual COM PORTs as mentioned earlier, "COMx" and/or "COM(x+1)", type in any data from hyper-terminal windows, the ASCII data will be shown on the LEDs on MCB214X board, e.g. type in "1" on the hyper terminal will result in "00110001B" on LEDs from P1.16 to P1.23. If the INT1 button is pressed, the message "INT1 has been pressed" will be shown on "COMx" and "COM(x+1)" simultaneously. This indicates that the MCB214X has communicated with the host PC hyper terminals via USB virtual COM PORTs in both directions. The Virtual COM PORT program is available for the following targets: MCB2140 Board: configured for on-chip FLASH ROM (used for production or target debugging) * - 本貼最后修改時間:2006-2-15 8:39:28 修改者:boy123
|
| 2樓: | >>參與討論 |
| 作者: lpc2000 于 2006/2/15 6:55:00 發(fā)布:
There are many examples in this GROUP http://GROUPs.yahoo.com/GROUP/lpc2000/ |
|
| 3樓: | >>參與討論 |
| 作者: boy123 于 2006/2/15 9:11:00 發(fā)布:
二樓的網(wǎng)址不錯,這個群我常去...好東東特多.. 有好多相關(guān)的LPC2000系列的源程序及電路 * - 本貼最后修改時間:2006-2-16 9:19:16 修改者:boy123 |
|
| 4樓: | >>參與討論 |
| 作者: violit 于 2006/2/15 20:26:00 發(fā)布:
這么好的資源。。。 |
|
| 5樓: | >>參與討論 |
| 作者: dorbin2001 于 2006/2/15 21:56:00 發(fā)布:
哈哈,我的LPC2142的板子明天就到了 到時候先找?guī)讉范例來爽爽。 GMCUAB平臺,兼容SAM7S系列和LPC213X,LPC214X。 |
|
|
|
| 免費注冊為維庫電子開發(fā)網(wǎng)會員,參與電子工程師社區(qū)討論,點此進入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號 |