-
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
-
PC数字电压表的设计,原理图以及代码,设计文档.此数字电压表的优势在于可以通过串口将测量所得到的电压值传给PC机,这样的话有利用整个数据的采集与分析.上位机采取...
PC数字电压表的设计,原理图以及代码,设计文档.此数字电压表的优势在于可以通过串口将测量所得到的电压值传给PC机,这样的话有利用整个数据的采集与分析.上位机采取的是串口通信软件.-PC digital voltage meter design, diagram and code, Design Documentation. This figure voltage meter advantage is through the serial port will be measured by the voltage transmission PC, so is the use of the entire data collection and analysis. PC"s serial port communication software.
- 2023-08-01 04:55:02下载
- 积分:1
-
单片机ATMEL M8 USB监视m8usbmonitor.rar
单片机ATMEL M8 USB监视m8usbmonitor.rar-USB MCU ATMEL M8 surveillance m8usbmonitor.rar
- 2022-03-21 23:32:36下载
- 积分:1
-
数字温度传感器DS18B20的汇编程序,调试可用
数字温度传感器DS18B20的汇编程序,调试可用-Digital temperature sensor DS18B20 the assembler, debugging can be used
- 2023-05-08 12:50:02下载
- 积分:1
-
jhd1264 LCD LCD screen C51 driver, after debugging characters can be displayed p...
jhd1264 LCD液晶屏的c51驱动程序,经过调试 能正确显示字符。-jhd1264 LCD LCD screen C51 driver, after debugging characters can be displayed properly.
- 2022-08-20 15:04:25下载
- 积分:1
-
keil c51在编译的时候会将0xfd的字符(有些汉字含该字符的内码)过滤, 而导致程序出错.特别是在做液晶汉字显示时. 针对这个bug.由网友编写了这个补丁...
keil c51在编译的时候会将0xfd的字符(有些汉字含该字符的内码)过滤, 而导致程序出错.特别是在做液晶汉字显示时. 针对这个bug.由网友编写了这个补丁. 请下载之后放到你的keilc51in 目录里,运行这个程序.就可以了. 支持v8.02-keil c51 will be at compile time 0xfd characters (some characters with the character code) filter, which led to error. particularly in the so LCD display Chinese characters. To address this bug. prepared by the users of the patch. Please after download put your keil c51 bin directory, run the process. it. support v8.02
- 2022-01-31 17:49:47下载
- 积分:1
-
用来做键盘和显示的芯片7279的源代码,用C编的
用来做键盘和显示的芯片7279的源代码,用C编的-Used to make the keyboard and display the source code of 7279 chips, with C-series
- 2023-07-27 04:40:03下载
- 积分:1
-
利用单片机实现SD卡读写程序,比较通用,大家可以参考,希望对你有所帮助。...
利用单片机实现SD卡读写程序,比较通用,大家可以参考,希望对你有所帮助。-Use of SCM SD card reader program, a more generic, we can refer to, want to help you.
- 2023-04-08 06:20:03下载
- 积分:1
-
modbus通信协议范例,详细解答了modbus的通信方式,如读线圈、寄存器…...
modbus通信协议范例,详细解答了modbus的通信方式,如读线圈、寄存器…-Modbus communication protocol example, detailed answers to the Modbus communication methods, such as reading coil, register ...
- 2022-03-05 13:15:59下载
- 积分:1
-
基于ATMEGA128控制的DS18B20的温度显示,采用LED显示。
基于ATMEGA128控制的DS18B20的温度显示,采用LED显示。-ATMEGA128-based control DS18B20 the temperature display, LED display.
- 2022-03-04 06:40:12下载
- 积分:1