-
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
-
电机调速是单片机或DSP硬件平台结合电机运行机制设计相应算法,并以软件实现...
电机调速是单片机或DSP硬件平台结合电机运行机制设计相应算法,并以软件实现-Motor speed is a microcontroller or DSP hardware platforms, operating mechanism with electrical design corresponding algorithms, and to software implementation
- 2023-02-27 21:15:03下载
- 积分:1
-
LCD 0108驱动程序
LCD 0108驱动程序 -LCD Driver for LCD 0,108 0,108 0,108 LCD Driver for LCD Driver 0108 Driver
- 2023-03-20 07:15:03下载
- 积分:1
-
包含protue 7.2 仿真文件及汇编语言源代码。主要是一个4X4的键盘以及一个LCD显示显示屏。键盘输入显示在LCD上。...
包含protue 7.2 仿真文件及汇编语言源代码。主要是一个4X4的键盘以及一个LCD显示显示屏。键盘输入显示在LCD上。-Simulation protue 7.2 contains documents and assembly language source code. 4X4 is primarily a keyboard and a LCD display screen. Keyboard displayed on the LCD on.
- 2023-03-24 08:00:03下载
- 积分:1
-
12864LCD电子钟的C语言程序,电子钟的经典
12864LCD电子钟c语言程序,电子钟的经典之作-12864LCD electronic bell c language program, the electronic bell classic
- 2022-01-25 19:04:01下载
- 积分:1
-
实现485口单相表的超表,亲自测试,可以使用
实现485口单相表的超表,亲自测试,可以使用-485 single-phase form to achieve super-table, you can use it.
- 2022-07-24 04:51:14下载
- 积分:1
-
用at89s52访问PDIUSBD12(USB协议)
用at89s52访问PDIUSBD12(USB协议)-AT89S52 visit with PDIUSBD12 (USB Protocol)
- 2022-01-30 14:58:58下载
- 积分:1
-
详细讲述10种经典的软件滤波算法,很通用。适合初学者。
详细讲述10种经典的软件滤波算法,很通用。适合初学者。-A detailed account of the 10 kinds of classic software filtering algorithm, it is common. Suitable for beginners.
- 2023-08-22 19:10:03下载
- 积分:1
-
93C46 literacy procedure very well and we hope that the procedures together exch...
93C46读写程序 很不错的程序希望和大家一起交流-93C46 literacy procedure very well and we hope that the procedures together exchanges
- 2022-08-02 10:46:01下载
- 积分:1
-
ht1621 information, I have written procedures, used in several products on the.
ht1621的资料,也有我写的程序,用在好几个产品上了.-ht1621 information, I have written procedures, used in several products on the.
- 2022-02-20 10:05:02下载
- 积分:1