-
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
-
12位da转换程序,调试通过
12位da转换程序,调试通过-12 da conversion process, debugging through
- 2023-09-06 11:20:02下载
- 积分:1
-
tenor notes, books and instruction cycle frequency prepared, clocked 12m. Compar...
中音音符dou,根据书上频率以及指令周期编写,时钟频率12m。比较easy。-tenor notes, books and instruction cycle frequency prepared, clocked 12m. Comparison easy.
- 2022-01-22 16:49:05下载
- 积分:1
-
4x4矩阵键盘数码管显示键值,按下4*4矩阵键盘,可以看到数码管的最后一位显示了对应按健的健值....
4x4矩阵键盘数码管显示键值,按下4*4矩阵键盘,可以看到数码管的最后一位显示了对应按健的健值.-4x4 matrix keypad LED display keys, press 4* 4 matrix keyboard, you can see the last one shows the digital control of the health value of health should be.
- 2022-02-20 07:38:53下载
- 积分:1
-
STC89C58RD+系列软件实现多串口
STC89C58RD+系列软件实现多串口-STC89C58RD+ Series software multi-serial
- 2022-03-01 04:51:29下载
- 积分:1
-
C51 Singlechip Tutorial L2, and L2 the example source code.
C51单片机教程L2,以及L2的例子源代码.
-C51 Singlechip Tutorial L2, and L2 the example source code.
- 2023-02-11 18:30:03下载
- 积分:1
-
用AT89C2051设计的PC
用AT89C2051设计的PC-AT键盘源代码-AT89C2051 design with the PC-AT keyboard source code
- 2022-08-24 19:02:26下载
- 积分:1
-
Under temperature and humidity transmitter bit machine code, using TI
温湿度变送器的下位机代码,用TI的MSP430F135-Under temperature and humidity transmitter bit machine code, using TI
- 2022-07-15 05:34:56下载
- 积分:1
-
51 IO口模拟串口通讯C源程序,IO 口模拟232通讯程序
使用两种方式的C程序 占用定时器0...
51 IO口模拟串口通讯C源程序,IO 口模拟232通讯程序
使用两种方式的C程序 占用定时器0
-51 IO serial communications simulation C source, I simulated 232 IO communication procedures use two forms of occupation C program timer 0
- 2023-02-15 13:30:02下载
- 积分:1
-
温度传感器18B20的典型应用,通过18B20采集温度,可以精确到小数点两位,在LED或LCD上显示...
温度传感器18B20的典型应用,通过18B20采集温度,可以精确到小数点两位,在LED或LCD上显示-Temperature Sensors Typical applications 18B20, 18B20 collected through the temperature, can be accurate to two decimal places, in the LED or LCD display
- 2022-08-16 12:54:45下载
- 积分:1