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

📄 abstract.txt

📁 lpc2368 usb cdc的测试程序
💻 TXT
字号:
The Virtual COM port project is a demo program for Keil MCB2300 Board
using the Philips LPC2368 Microcontroller.

It demonstrates an USB Virtual COM port based on a Windows USB host 
driver (usbser.sys).

The PC will install a virtual COM port on the PC (see Driver Installation).
After installation an additional port "MCB2300 USB VCom Port(COMx)"
can be found under System/Hardware/Device Manager/Ports(COM&LPT).
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 port:

  (1) With serial cable: 
  Open two Hyperterminal windows. 
      One with "MCB2300 USB VCom Port(COMx)" 
      One with "Communications Port (COM1)".
  Connect PC port COM1 to MCB2300 COM1 and open "COM1" and "COMx".
  Data from COM1 will be echoed on "COMx" and visa versa. 
  So, this is bi-directional communication between the physical COM
  port 1 on MCB2300 and the virtual COM port COMx on host PC.    

  (2) Without serial cable: 
  In vcomdemo.c, change #define NO_UART_CABLE from 0 to 1.
  Recompile the project and update the flash.
  Once the flash has been updated reset the MCB2300 board.
  Open a Hyperterminal window. 
      One with "MCB2300 USB VCom Port(COMx)"
  Data typed in will be displayed using LEDs from P2.0 to P2.7.
  If the INT0 (S2) button is pressed, the message "INT0 pressed" 
  will be shown on "COMx". 

The Virtual COM Port program is available for the following targets:
  MCB2300: configured for on-chip Flash ROM
           (used for production or target debugging)

Note: set jumper J5 to 1[2 3] (jumper towards JTAG connector)
      for USB soft connect


Driver Installation:
--------------------
     "Welcome to the Found New Hardware Wizard" appears
     - select 'No, not this time'
     - press  'Next'

     - select 'Install from a list or specific location (Advanced)'
     - press  'Next'

     - select 'Search for the best driver in these locations'
     - check  'include this location in the serach'
     - set to <project folder>
     - press 'Next'


     "Hardware Installation" appears
     "has not passed Windows Logo testing..."
     - press 'Continue Anyway'

     "Completing the Found New Hardware Wizard" appears
     - press 'Finish'

⌨️ 快捷键说明

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