引用本文:兰明蛟,董超,田畅,胡明.基于WDM模式的八串口卡驱动程序开发[J].电力自动化设备,2006,(12):82-85
.Design of 8-channel synchronous serial interface card based on WDM[J].Electric Power Automation Equipment,2006,(12):82-85
【打印本页】   【HTML】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 3845次   下载 1655 本文二维码信息
码上扫一扫!
基于WDM模式的八串口卡驱动程序开发
兰明蛟,董超,田畅,胡明
作者单位
摘要:
串行通信是一种常用的数据通信方式,可用在PC机和工业电子设备组成的监控系统中。设计的基于外围部件互连(PCI)总线的同步八串口卡以PCI9052为总线控制芯片。WDM(WindowsDriverModel)是一个模块化、分层式的驱动程序结构,支持即插即用和电源管理。从工程的角度阐述了基于WDM的驱动程序通过接口芯片配置空间的VendorID和DeviceID访问硬件,在OnStartDevice例程中获得资源,通过DPC(DeferredProcedureCall)例程处理中断,应用程序以调用函数的形式访问驱动程序,通过IRP(I/ORequestPackage)与应用程序通信。应用DriverMonitor和SoftICE调试驱动程序,运行DriverMonitor可浏览在Checked状态下输出的调试信息,运行SoftICE可打开驱动程序的源代码,在代码中设置断点、跟踪断点、单步执行。
关键词:  WDM,PCI驱动,同步八串口卡
DOI:
分类号:TP319
基金项目:
Design of 8-channel synchronous serial interface card based on WDM
LAN Ming-jiao  DONG Chao  TIAN Chang  HU Ming
Abstract:
Serial data communication is widely used in monitoring systems of PC and electronic equipment.An 8-channel synchronous serial interface card is designed based on PCI(Peripheral Component Interconnection)with PCI 9052 as its bus control chip.WDM(Windows Driver Model)is of modularized and layered driver structure,supporting plug-and-play and power management.The WDM-based driver accesses hardware via Vendor IDs and Device IDs in configuration space of interface chip,gets resources via OnStartDevice program,and deals with interruption via DPC(Deferred Procedure Call)program.Applications call driver via DeviceIoControl,communicates with it via IRP(I/O Request Package).DriverMonitor and SoftICE are used to test the driver.The test information can be browsed with DriverMonitor under Checked state and SoftICE is used to open the source code of driver,set and trace breakpoints.
Key words:  WDM,PCI driver,8-channel synchronous serial interface card

用微信扫一扫

用微信扫一扫