-
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
-
YEKA手机数据线驱动pl
YEKA手机数据线驱动pl-2303hx drv-clubs mobile data line drive pl-2303hx Drv
- 2022-03-14 12:12:34下载
- 积分:1
-
使用Spartan3e解串行数据,来源于官方-Spartan3e solution using the serial data, from the official
- 2022-08-31 17:00:03下载
- 积分:1
-
在单片机系统中实现4*4的小键盘的扫描程序,按键输出对应信号,可以根据按键来设定输出对应高低电平...
在单片机系统中实现4*4的小键盘的扫描程序,按键输出对应信号,可以根据按键来设定输出对应高低电平-Single-chip microcomputer system in the implementation of the 4* 4 keypad scanning procedures, the corresponding button output signal can be output in accordance with the corresponding button to set the high-low
- 2022-09-15 14:40:03下载
- 积分:1
-
AD转换芯片max197驱动程序(KeilC51)
AD转换芯片max197驱动程序(KeilC51)-AD converter chip max197 Driver (KeilC51)
- 2023-05-06 16:50:02下载
- 积分:1
-
C51源数据库,许多情况下,51个研究的基础
C51源程序库,一些例,学51单片机的基础用-C51 source database, a number of cases, the basis of study with 51 single-chip microcomputer
- 2022-01-20 23:25:01下载
- 积分:1
-
一个很好的例程,希望对您有帮助,欢迎探讨
一个很好的例程,希望对您有帮助,欢迎探讨
- 2023-01-01 23:00:04下载
- 积分:1
-
This is STC Series installation software download, stc series single
这是stc系列下载器的安装软件,stc系列单片机,希望初学者能应用到-This is STC Series installation software download, stc series single-chip, hoping for beginners can be applied to
- 2022-07-11 15:21:00下载
- 积分:1
-
ID读卡程序,在可以读取ID卡卡号,判断身份,在门禁考勤大量应用...
ID读卡程序,在可以读取ID卡卡号,判断身份,在门禁考勤大量应用-ID card reader, and in the can read ID cards card number, as judge, in a large number of applications are disucssed
- 2022-04-19 05:40:42下载
- 积分:1
-
基于PIC18F2580实现的键盘控制程序(带防抖功能) C语言写的
基于PIC18F2580实现的键盘控制程序(带防抖功能) C语言写的-PIC18F2580 realize the keyboard-based control procedures (with Anti-Shake function) C language written in
- 2022-07-02 15:16:43下载
- 积分:1