-
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
-
通过51单片机对MB9200中文字符叠加芯片进行控制,实现在视频上叠加字符。...
通过51单片机对MB9200中文字符叠加芯片进行控制,实现在视频上叠加字符。-Through 51 Singlechip Chinese characters superimposed on the MB9200 chip control, realize characters superimposed on the video.
- 2022-08-19 17:44:56下载
- 积分:1
-
机器人部分C语言编码 c语言 供大家参考学习
机器人部分C语言编码 c语言 供大家参考学习-Some of robot C language code c language reference for everyone to learn
- 2022-10-12 14:15:03下载
- 积分:1
-
simple click. you can use this to complete your assignment
simple click. you can use this to complete your assignment
- 2022-06-13 16:36:56下载
- 积分:1
-
这是通讯接口实验《异步串行通信实验》的原理程序,适合于那些上嵌入式系统、通信、计算机专业的人...
这是通讯接口实验《异步串行通信实验》的原理程序,适合于那些上嵌入式系统、通信、计算机专业的人-This is the communication interface experiment, "asynchronous serial communications experiment," the principle procedures, suitable for those on embedded systems, communications, computer specialists in the
- 2022-03-11 07:26:15下载
- 积分:1
-
sed1335液晶驱动器源码,cpu为摩托罗拉16位单片机MC9S12DT128
sed1335液晶驱动器源码,cpu为摩托罗拉16位单片机MC9S12DT128-sed1335 LCD driver source code for Motorola cpu 16 SCM MC9S12DT128
- 2022-05-14 00:27:55下载
- 积分:1
-
128X64点阵LCD驱动,KeilC51编写
128x64点阵液晶屏驱动,KeilC51编写-128X64 dot matrix LCD driver, KeilC51 prepared
- 2022-02-21 00:00:05下载
- 积分:1
-
avr串口实验,并且带有硬件原理图,程序简单,适合新手!
avr串口实验,并且带有硬件原理图,程序简单,适合新手!-avr serial experiments, as well as with the hardware schematic diagram, a simple, suitable for novice!
- 2023-03-01 23:55:03下载
- 积分:1
-
schduler for AVR mcu
schduler for AVR mcu
- 2022-12-05 10:55:02下载
- 积分:1
-
485 Communication in industrial control and management system is widely used, bu...
485通信在工业控制及管理系统中应用非常广泛,但485总线的相关资料教材上说明的却非常泛泛,这些资料对485通讯做了详细介绍,并有应用案列,相信对朋友们很实用-485 Communication in industrial control and management system is widely used, but the 485 bus information materials on the description is very general, such information on the 485 made a detailed presentation and have applied the case of columns, I believe that friends are very practical for
- 2023-06-27 08:30:03下载
- 积分:1