虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

Uart-I

  • 基于51系列单片机的通用软件UART的实现

    通过对UART技术的研究,提出了一种利用软件实现UART的单片机扩展方法,没有使用任何外围器件,仅仅利用单片机的一个I/O端口、一个T/C技术定时器和一个INT外部中断并通过软件编程实现,节约了

    标签: UART 51系列 单片机 软件

    上传时间: 2013-08-02

    上传用户:快乐的小糗糗

  • I/O 型单片机使用手册

    I/O 型单片机使用手册 目录 间接寻址寄存器 – IAR, IAR0, IAR1 .............................................35间接寻址指针 – MP, MP0, MP1 ......................................................35存储区指针 – BP .........................................................................36累加器 – ACC...................................................................................37程序计数器低字节寄存器 – PCL....................................................37表格寄存器 – TBLP,TBHP,TBLH....................................................37看门狗定时寄存器 – WDTS............................................................38状态寄存器 – STATUS.....................................................................38中断控制寄存器 – INTC,INTC0,INTC1 .........................................39定时/计数寄存器...............................................................................39输入/输出端口和控制寄存器...........................................................40UART 寄存器 .USR,UCR1,UCR2,TXR/RXR,BRG.......................40输入/输出端口..........................................................................................41上拉电阻............................................................................................41PA 口的唤醒......................................................................................41输入/输出端口控制寄存器...............................................................41引脚共享功能....................................................................................42编程注意事项....................................................................................45定时/计数器..............................................................................................46配置定时/计数器输入时钟源...........................................................47定时/计数寄存器 – TMR, TMR0,TMR0L/TMR0H,TMR1L/TMR1H,TMR2.....................................................................49定时/计数控制寄存器 – TMRC,TMR0C,TMR1C,TMR2C............50定时器模式........................................................................................53事件计数器模式................................................................................53脉冲宽度测量模式............................................................................54可编程分频器(PFD)和蜂鸣器的应用..............................................55预分频器(Prescaler)...........................................................................56输入/输出接口...................................................................................56编程注意事项....................................................................................57定时/计数器应用范例.......................................................................57中断............................................................................................................59中断寄存器........................................................................................59中断优先权........................................................................................62外部中断............................................................................................63定时/计数器中断...............................................................................64UART 中断........................................................................................64编程注意事项....................................................................................65复位和初始化............................................................................................66复位....................................................................................................66目录iii异步串行口——UART............................................................................74UART 特性..........................................................................................74UART 外部引脚..................................................................................74数据发送.............................................................................................75UART 状态控制寄存器......................................................................75波特率发生器.....................................................................................79UART 设置与控制..............................................................................81UART 发送器......................................................................................83UART 接收器......................................................................................84接收错误处理.....................................................................................85接收中断图解.....................................................................................86地址检测模式.....................................................................................86暂停模式下的UART 功能.................................................................87UART 应用范例.................................................................................87振荡器........................................................................................................89系统时钟配置....................................................................................89系统晶体/陶瓷振荡器.......................................................................89系统电阻电容振荡器........................................................................90内部系统电阻电容振荡器................................................................90RTC 振荡器........................................................................................91看门狗定时振荡器............................................................................91暂停和唤醒................................................................................................92暂停.....................................................................................................92进入暂停.............................................................................................92静态电流.............................................................................................92唤醒....................................................................................................92看门狗定时器............................................................................................94掩膜选项....................................................................................................96应用电路....................................................................................................97第二部份 程序语言.....................................................................99第二章 指令集介绍.................................................................................101指令集......................................................................................................101指令周期..........................................................................................101数据的传送......................................................................................101算术运算..........................................................................................102逻辑和移位运算..............................................................................102分支和控制的转换..........................................................................102位运算..............................................................................................102查表运算..........................................................................................103其它运算..........................................................................................103指令设定一览表......................................................................................104惯例..................................................................................................104I/O 型单片机使用手册iv第三章 指令定义.....................................................................................107第四章 汇编语言和编译器.....................................................................121常用符号..................................................................................................121语句语法..................................................................................................122名称..................................................................................................122操作项..............................................................................................122操作数项..........................................................................................122注解..................................................................................................122编译伪指令..............................................................................................123条件编译伪指令..............................................................................123文件控制伪指令..............................................................................124程序伪指令......................................................................................126数据定义伪指令..............................................................................130宏指令..............................................................................................132汇编语言指令..........................................................................................136名称..................................................................................................136助记符..............................................................................................136操作数、运算子和表达式..............................................................136其它..........................................................................................................139前置引用..........................................................................................139局部标号..........................................................................................139汇编语言保留字..............................................................................140编译器选项..............................................................................................141编译列表文件格式..................................................................................141源程序列表......................................................................................141编译总结..........................................................................................142其它..................................................................................................142第三部份 开发工具................................................................... 145第五章 单片机开发工具.........................................................................147HT-IDE 集成开发环境............................................................................147盛群单片机仿真器(HT-ICE) ..................................................................149HT-ICE 接口卡.................................................................................149OTP 烧写器.....................................................................................149OTP 适配卡.....................................................................................149系统配置..................................................................................................150HT-ICE 接口卡设置........................................................................151安装..........................................................................................................153系统要求..........................................................................................153硬件安装..........................................................................................153软件安装..........................................................................................154目录v第六章 快速开始.....................................................................................159步骤一:建立一个新项目..............................................................159步骤二:将源程序文件加到项目中..............................................159步骤三:编译项目..........................................................................159步骤四:烧写OTP 单片机.............................................................160步骤五:传送程序与掩膜选项单至Holtek ..................................160附录............................................................................................... 161附录A 特性曲线图...................................................................................163附录B 封装信息.......................................................................................173

    标签: 单片机 使用手册

    上传时间: 2013-10-18

    上传用户:blacklee

  • P89LPC901实现ADC DAC及UART通信

    LPC900 系列单片机由于其功能强大,性能稳定一直深受用户欢迎。P89LPC901 是LPC900 系列单片机的一员,性价比极高,为SO8/DIP8 封装,内含1KB FLASH,支持ICP,且具有6 个I/O 口、4 个TIMER、1 路PWM 输出、模拟比较器、键盘中断等众多功能部件。本文利用LPC901 单片机的强大功能实现ADC/DAC,并且通过模拟UART 与PC 机进行通信;通过PC 端软件可以显示DA 转换结果及控制DA 输出电压。

    标签: UART P89 LPC 901

    上传时间: 2013-11-06

    上传用户:shus521

  • These routines transmit and receive serial data using two general * I/O pins, in 8 bit, No parity,

    These routines transmit and receive serial data using two general * I/O pins, in 8 bit, No parity, 1 stop bit format. They are useful * for performing serial I/O on 8051 derivatives not having an * internal UART, or for implementing a second serial channel.

    标签: routines transmit receive general

    上传时间: 2015-05-22

    上传用户:firstbyte

  • C8051F020的全面应用,包括两个UART口、SPI、I2C

    C8051F020的全面应用,包括两个UART口、SPI、I2C,所有I/O均用上。

    标签: C8051F020 UART SPI I2C

    上传时间: 2015-06-25

    上传用户:xieguodong1234

  • 数字I/O实验主要完成的功能: 在此实验中

    数字I/O实验主要完成的功能: 在此实验中,SEED-DEC5416 首选进行初始化,包括对外设 UART、本身频率的设定及一些状态区的初始化。然后等待 SEED-MMI5402 发送命令;SEED-DEC5416 响应交通灯自动模式、交通灯手动手动模式、交通灯东西通、交通灯南北通、及交通灯的禁行与夜间模式的操作命令。同时还响应,对 SEED-DEC5416 的复位及两个单元之间的通讯故障。

    标签: 实验 数字

    上传时间: 2015-11-21

    上传用户:jcljkh

  • 目前普遍采用的MCS51 和PIC 系列单片机通常只有一个(或没有)UART 异步串行通信接口

    目前普遍采用的MCS51 和PIC 系列单片机通常只有一个(或没有)UART 异步串行通信接口,在应用系统中若需要多个串行接口(例如在多机通信系 统中,主机既要和从机通信又要和终端通信)的情况下,通常的方法是扩展 一片8251 或 8250 通用同步/异步接收发送芯片(USART),需额外占用单 片机I/O 资源。本文介绍一种用单片机普通I/O 口实现串行通信的方法,可 在单片机的最小应用系统中实现与两个以上串行接口设备的多机通信

    标签: UART MCS PIC 51

    上传时间: 2016-01-25

    上传用户:皇族传媒

  • 8051 串行接口是一个可编程的全双工串行通讯接口。它可用作异步通讯方式(UART)

    8051 串行接口是一个可编程的全双工串行通讯接口。它可用作异步通讯方式(UART),与串行传送信息的外 部设备相连接,或用于通过标准异步通讯协议进行全双工的8051 多机系统也可以通过同步方式,使用TTL 或CMOS 移位寄存器来扩充I/O 口。

    标签: 8051 UART 串行接口 可编程

    上传时间: 2013-12-16

    上传用户:

  • 8051 串行接口是一个可编程的全双工串行通讯接口。它可用作异步通讯方式(UART)

    8051 串行接口是一个可编程的全双工串行通讯接口。它可用作异步通讯方式(UART),与串行传送信息的外 部设备相连接,或用于通过标准异步通讯协议进行全双工的8051 多机系统也可以通过同步方式,使用TTL 或CMOS 移位寄存器来扩充I/O 口。

    标签: 8051 UART 串行接口 可编程

    上传时间: 2013-12-01

    上传用户:阳光少年2016

  • i.mx27开发板的整套详细原理图

    i.mx27开发板的整套详细原理图,包括:DDR SDRAM, NAND FLASH, NOR FLASH, USB OTG, USB HOST,FEC PHY, UART,JTAG等等接口

    标签: mx 27 开发板 原理图

    上传时间: 2013-12-15

    上传用户:yuanyuan123