摘要
基于一种新型USB总线接口芯片CH372,设计出一种人机接口设备—USB鼠标。阐述了CH372的工作原理和特点,给出了系统的硬件电路图;在软件设计中,分析了HID类设备描述符枚举过程,根据主程序流程图,写出了部分单片机本地端主程序。通过硬件和软件调试,最后成功模拟出鼠标左键和右键功能。
Based on a new type of USB bus interface chip CH372,a human interface devices-USB mouse is designed.The working principle and characteristics of CH372 are expounded,and Hardware circuit is given.In terms of software design,the Enumeration process of the HID device descriptor is analysed.According to the main program flow chart,a local single-chip part of the main program is given.Through hardware and software debugging,the mouse functions of the left and the right button are successfully simulated.
出处
《计算机系统应用》
2010年第4期216-218,211,共4页
Computer Systems & Applications
关键词
人机接口
描述符
枚举
中断
HID
descriptor
numerate
interruption