针对目前使用的RS232接口数字化B超键盘存在PC主机启动时不能设置BIOS,提出一种PS2键盘的设计方法。基于W78E052D单片机,采用8通道串行A/D转换器设计了8个TGC电位器信息采集电路,电位器位置信息以键盘扫描码序列形式发送,正交编码器信号通过XC9536XL转换为单片机可接收的中断信号,软件接收到中断信息后等效处理成按键。结果表明,在满足开机可设置BIOS同时,又可实现超声特有功能,不需要专门设计驱动程序,接口简单,成本低。 Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
上传时间: 2013-10-10
上传用户:asdfasdfd
以太网和CAN总线应用广泛,但由于其通信协议不同,两种总线器件间无法进行数据通信,因此,设计了基于CP2200与C8051F040的以太网总线与CAN总线接口转换电路,并给出部分相关硬件电路与软件设计分析。在保证数据完整和协议可靠的前提下,通过握手协议和简化的以太网协议,不仅实现了以太网数据与CAN数据的转发,同时还顺利的解决了以太网的高速性与CAN的低速率冲突,以及两者数据包之间的大小不同的矛盾。 Abstract: In the development of actual application, Ethernet and CAN bus are used very extensively. Owing to its various communication protocols, the communicating between two kinds of bus device can’t be carried out. Therefore, in order to solve this problem, the Ethernet-CAN bus interface circuit based on CP2200 and C8051F040 was designed in this paper, and part of the related hardware circuit and software design analysis were given. On the condition of data’s integrity and protocols’reliability, through the handshaking protocols and the simplified the Ethernet protocol, not only the data switching between CAN and Ethernet was realized, but also the differ in velocity and packet size was solved.
上传时间: 2013-10-15
上传用户:Ants
为了实现把软件仿真的数据通过PCI总线DMA传输、处理后转换成高速视频串行数据流(LVDS数据流),设计出了基于PCI9054的数据转换模块。通过介绍PCI总线接口协议芯片PCI9054的性能、特点,分析了windows的WDM驱动程序的特点,在软硬件设计中采用把数据缓存器设置为两组SRAM的结构,两组SRAM交替进行数据存取的方式,有效克服了数据流不连续的现象,解决了形成不间断数据流和两次DMA传输之间的数据间断问题。应用结果表明,该设计可满足数字视频带宽20 MHz以内的LVDS数据流的转换与传输。
上传时间: 2014-12-26
上传用户:jisujeke
介绍了当前普通标记机控制系统现状及其存在缺点,给出气动标记机及相频修正PWM模式的工作原理。采用ATmega16单片机和USB转换RS232接口器件CH341T实现驱动控制系统与PC的实时通讯,标记控制系统可升级到USB接口。采用基于ATmega16的相频修正PWM替换555振荡电路产生的PWM,可直接通过软件调整PWM信号。使用达林顿三极管TIP122替代直流继电器驱动高频电磁阀,使得电磁阀驱动电路简单,成本低廉。该控制系统已成功应用于气动标记机。 Abstract: In this paper,the actuality and demerit of the common gas marking machine control systems are described.The operation principle of the gas marking machine and the phase and frequency correct PWM of ATmega16is introduced.The real-time communication between the driving control system and PC by CH341T which its function is translated USB to RS232is realized,the control systems is updated grade to USB interface.The PWM signal can be adjustable by software for the555surge circuit was substituted by the phase and frequency.The high frequency electromagnetic value’s driving circuit by DC relay is replaced by TIP122,therefore,the circuit is become simple and the cost cheap.The control systems has been widely used in gas marking machine.
上传时间: 2013-10-18
上传用户:1427796291
摘要:在工业自动控制中,单片机与PLC的远距离通信是一个难点与热点问题。本文设计了S7-200PLC与PIC16F877单片机实现远距离串行通信的硬件连接和软件实现方法。本文采用了MAX485E芯片进行TTL电平与差分信号之间的转换,使用RS-485端口和半双工模式进行通信。最后通过异或校验码对接收到的数据进行核对,以进一步提高数据传输的可靠性。实验证明,该方法成功实现了单片机与PLC的远距离通信,并且具有开发简单,抗干扰能力强的特点,具有一定实用价值。关键词:单片机 PLC 串行通信
上传时间: 2014-12-27
上传用户:YUANQINHUI
在嵌入式系统中,嵌入式CPU往往要通过各种串行数据总线与“外界”进行通信。在应用中,异步的串行数据通信用得较多,而通用异步收发器UART(Universal Asynchronous Receiver Transmitter)在其中扮演着重要角色:完成数据的串并转换,即把并行数据按照通信波特率转化为通信协议中规定的串行数据流,也可从串行数据流中取出有用数据转变为并行数据。而UART与CPU接口简单,CPU只需通过执行读写操作即可完成收发数据,从而完成与外界的通信。有许多现成的芯片可以实现UART的功能,如常用的Intel8250/8251接口芯片就可以作为RS232、RS422串口的UART控制芯片。
上传时间: 2013-11-25
上传用户:www240697738
在工作控制和智能化仪表中,通常由微型计算机进行实时控制及实时数据处理。计算机所加工的信息总是数字量,而被控制或测量对象的有关参量往往是连续变化的模拟量,如温度、速度、压力等等,与此对应的电信号是模拟电信号。计算机要处理这种信号,首先必须将模拟量转换成数字量,这一转换过程就是“模/数转换(A/D)”
上传时间: 2013-10-24
上传用户:tzl1975
1.设计任务分析 原理: 当按下开关,NE555计时器,4引脚于高电平,元件工作,电容C1充电,且2、6引脚达到高电平,此时输出端3为低电平,扬声器发出响声;开关松开后,电容C1放电,在2、6引脚大于1/3Vcc前,3端为低电平,扬声器工作;当放电使2、6端电平小于1/3Vcc,3端为高电平,扬声器不工作。电容C2与滑动变阻器一起控制引脚4的状态,使置零输入端呈不同的临界电压,从而控制扬声器响音时间的长短。当电路转换时,2、6端电压不同,使得输出端3低电平电压也不同,从而实现扬声器的双音。
上传时间: 2013-10-08
上传用户:懒龙1988
为我国设计、生产的sTC单片机设计了程序下载器,它由40点DIP锁紧座、USB—UART转换电路、握手信号触发开关等电路和上位机控制程序组成.它利用FT232BM组成串口转换器,将USB串口虚拟成RS232串口,解决了STC单片机与PC机的通信问题.它携带方便,由USB I:/供电,适合在调试现场随时下载程序.
上传时间: 2014-01-09
上传用户:suoyuan
单片机在日常生活中用得越来越多,其集成度也越来越高,目前拥有多种单片机都集成有A/D转换功能,如PIC,AVR,SUNPLUS,SH等。处理器的位数从4位到32位或更高,转换精度从6位,8位,10位或更高。
上传时间: 2013-10-28
上传用户:xa_lgy