-
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双...
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双工通讯。收、发波特率相同。
4. 应把定时器中断优先级设置为最高级。
5. 本程序每接收一个字节后就把它放到一个队列缓冲区中(也可使用环行缓冲区),
待缓冲区满后,将缓冲区中的内容原样发回。这是为了测试多字节连续收发的
能力和简化程序。实际应用中应防止缓冲区溢出。
6. 由接收转换到发送时要先调用 soft_send_enable ();
由发送转换到接收时要先调用 soft_receive_enable ()。
7. 发送最后一个字节后如果要立刻转为接收,必须等待最后一个字节后发送完毕
while ( rs_f_TI == 0) // 等待最后一个字节发送完毕-err
- 2022-06-19 08:35:11下载
- 积分:1
-
591单片机CAN模块A51DEMO程序
591单片机CAN模块A51DEMO程序-591 SCM CAN module A51DEMO procedures
- 2022-03-17 09:36:08下载
- 积分:1
-
Proteus
Proteus
- 2022-01-25 14:02:03下载
- 积分:1
-
单
51单片机驱动LCD的子程序,LCD为定制的液晶,采用HT1621作为LCD驱动芯片-Single-chip LCD driver 51 of the subroutine, LCD for customized liquid crystal, used as the LCD driver IC HT1621
- 2023-05-03 20:10:02下载
- 积分:1
-
单片机串行通讯从机程序
单片机串行通讯从机程序-serial communication from the plane procedures
- 2022-02-09 23:36:27下载
- 积分:1
-
开票盖章系统设计开发环境为ICC,可以编译成汇编,直接下栽到嵌入式avr单片机进行控制...
开票盖章系统设计开发环境为ICC,可以编译成汇编,直接下栽到嵌入式avr单片机进行控制-drawer sealing systems design and development environment for the ICC, can compile a compendium, Embedded directly to the downward avr microprocessor control
- 2022-03-25 18:26:43下载
- 积分:1
-
该程序是基于c8051f的红外线发射率的测量程序
该程序是基于c8051f的红外线发射率的测量程序-The program is based on the infrared emissivity c8051f measurement procedures
- 2022-03-21 00:17:54下载
- 积分:1
-
Singlechip LCD12864 show demo
单片机 LCD12864显示演示程序-Singlechip LCD12864 show demo
- 2022-10-18 06:25:02下载
- 积分:1
-
Standard IIC protocol communication procedures, can read and write EEROM, real
标准IIC协议通信程序,能读写EEROM、实时时钟,使用方便,可靠!-Standard IIC protocol communication procedures, can read and write EEROM, real-time clock and easy to use, reliable!
- 2022-05-26 04:44:27下载
- 积分:1
-
文章借助系统模型,阐明了GSM模块收发短信的基本概念以及串口控制SMS的基本原理。详细介绍了单片机控制GSM模块工作的软件实现过程,对对怎样用单片机控制GSM模...
文章借助系统模型,阐明了GSM模块收发短信的基本概念以及串口控制SMS的基本原理。详细介绍了单片机控制GSM模块工作的软件实现过程,对对怎样用单片机控制GSM模块收发短信进行了探讨,也对程序设计的主体思想作了较为细致的分析。-article with the system model, a GSM transceiver module SMS the basic concepts and serial control of the basic tenets of SMS. Details of the MCU control of the GSM module software process of how to use SCM control GSM transceiver module for the SMS study and design of the main procedures were thinking more detailed analysis.
- 2022-03-21 09:13:18下载
- 积分:1