P0端口由锁存器、输入缓冲器、切换开关、一个与非门、一个与门及场效应管驱动电路构成。再看图的右边,标号 为P0.X引脚的图标,也就是说P0.X引脚可以是P0.0到P0.7的任何一位,即在P0口有8个与上图相同的电路组成。
上传时间: 2014-01-13
上传用户:fandeshun
单片机作为一种微型计算机,其内部具有一定的存储单元(8031除外),但由于其内部存储单元及端口有限,很多情况下难以满足实际需求。为此介绍一种新的扩展方法,将数据线与地址线合并使用,通过软件控制的方法实现数据线与地址线功能的分时转换,数据线不仅用于传送数据信号,还可作为地址线、控制线,用于传送地址信号和控制信号,从而实现单片机与存储器件的有效连接。以单片机片外256KB数据存储空间的扩展为例,通过该扩展方法,仅用10个I/O端口便可实现,与传统的扩展方法相比,可节约8个I/O端口。 Abstract: As a micro-computer,the SCM internal memory has a certain units(except8031),but because of its internal storage units and the ports are limited,in many cases it can not meet the actual demand.So we introduced a new extension method,the data line and address lines combined through software-controlled approach to realize the time-conversion functions of data lines and address lines,so the data lines not only transmited data signals,but also served as address lines and control lines to transmit address signals and control signals,in order to achieve an effective connection of microcontroller and memory chips.Take microcontroller chip with256KB of data storage space expansion as example,through this extension method,with only10I/O ports it was achieved,compared with the traditional extension methods,this method saves8I/O ports.
上传时间: 2014-12-26
上传用户:adada
详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于RS-485总线传输的接口电路原理图。根据组态王提供的通讯协议和单片机多机串口通讯的原理,给出程序设计流程与思路。 Abstract: In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
上传时间: 2013-12-19
上传用户:tecman
介绍了基于单片机C8051F020的通用串口适配器的设计与实现方法,即由单片机控制的智能化一对多口收发信号转换器。通过采用C51对单片机进行编程,控制与RS-232(标准RS-232电平)、RS232(TTL电平)、RS-422接口的数据通信;采用C++ Builder作为开发平台,通过RS-232接口实现上位机对适配器各个通信端口的控制。 Abstract: Design and realization of a universal serial port adapter based on the MCU C8051F020 are introduced.The adapter is an intelligent one-to-more receiving and transmitting signal converter controlled by the MCU. By programming the MCU with the language C51,MCU control data communication between the MCU and RS-232(RS-232 level),RS-232(TTL level),RS-422 port; Using C++ Builder as the development plane, by one RS232 port, the upper PC can control each of the communication port of the adapter.
上传时间: 2013-11-19
上传用户:hebanlian
CAT9555 是一款基于COMS 工艺的器件,它提供了I2C 和SMBus 在应用中的16 位通用并行输入、输出口的扩展。当应用中需要额外的I/O 口来连接传感器、电源开关、LED、按钮、风扇等时,可使用I/O 扩展器件实现简单的解决方案。
上传时间: 2013-11-05
上传用户:jiangxiansheng
摘要:介绍利用80C31单片机串行口、廉价的74HC164和74HC244集成块实现多个LED显示的一种简单方法,利用该方法设计的多路LED显示系统具有硬件结构简单、软件编程容易和价格低廉的特点。关键词:单片机 串行口 LED 显示 80C31
上传时间: 2013-12-31
上传用户:时代将军
串口与单片机通讯问题
上传时间: 2013-11-12
上传用户:wbwyl
将AVR上的队列串口驱动程序修改后,运行在STM32开发板,采用中断方式接收和中断发送,并加入了缓冲收发队列操作。由于该驱动是用来操作西门子的TC35或MC55等通信模块,所以加入了“等待串口接收完成”函数,该函数需要一个10ms的定时进行计数累加。
上传时间: 2013-11-11
上传用户:kaixinxin196
欢迎使用液晶并口烧录器,使用前请详细阅读以下使用说明! 液晶并口烧录器是专业针对LCDMCU烧录更新的工具,工作原理:通过PC机LPT口(打印口)将LCD MCU语言程序写入升级程序头,再通过升级程序头将LCDMCU语言程序写入LCD驱动主板的FLASHROM中去。其整个过程只须一分钟时间。 液晶并口烧录器,具有速度快,性能稳定、电路安全、功耗较低等特点,电路采用12V外置电源作为供电,经内部稳压电路处理后为整机电路提供能量,保证了电路的稳定性!整机电路采用多重保护,功耗:0.25W。
上传时间: 2013-11-21
上传用户:rocketrevenge
欢迎使用液晶串口烧录器,使用前请详细阅读以下使用说明! 液晶串口烧录器是专业针对LCDMCU烧录更新的工具,工作原理:通过PC机COM口(串口)将LCD MCU语言程序直接写入驱动主板MCU中去。其整个过程只须30秒钟时间。根据你的电脑配置不同可能所用时间有所不同。 液晶串口烧录器是,具有速度快,性能稳定、电路安全、功耗较低等特点,电路采用5V驱动主板电源作为供电,再经内部稳压电路处理后为整机电路提供能量,保证了电路的稳定性!整机电路采用多重保护,功耗:0.05W。
上传时间: 2013-10-30
上传用户:baiom