-
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
-
在Keil环境下,用1302实现的时钟,用6位数码管显示时间,显示格式00:00:...
在Keil环境下,用1302实现的时钟,用6位数码管显示时间,显示格式00:00:-In the Keil environment, to achieve by 1302 the clock, with six digital display time, display format 00:00:00
- 2022-02-21 18:49:12下载
- 积分:1
-
isd4003 drivers, mainly for the driver isd4003 recorders, very useful ah!
isd4003的驱动程序,主要用于驱动isd4003的录放,很有用的啊-isd4003 drivers, mainly for the driver isd4003 recorders, very useful ah!
- 2023-07-07 07:10:03下载
- 积分:1
-
SCM notes
单片机 音符---音频转换程序 附带 十六进制 音节标语-SCM notes--- audio conversion fringe hexadecimal syllable slogan
- 2022-07-11 11:13:03下载
- 积分:1
-
AVR单片机的MP3方案,解码芯片为VS1003
AVR单片机的MP3方案,解码芯片为VS1003-AVR MCU MP3 program, decoder chip for VS1003
- 2022-05-13 02:32:03下载
- 积分:1
-
485 are way communication. Through 485 to control a group of light switches.
通信方式是485方式。通过485来控制一组灯的开关。-485 are way communication. Through 485 to control a group of light switches.
- 2022-03-07 13:39:35下载
- 积分:1
-
LPC2119的CAN驱动程序,开发环境问ads1.2
LPC2119的CAN驱动程序,开发环境问ads1.2-LPC2119
- 2022-03-21 03:22:40下载
- 积分:1
-
AVR开发例程 有多种设计样例 帮你快速掌控AVR
AVR开发例程 有多种设计样例 帮你快速掌控AVR-AVR development has a variety of routines designed to help you sample the rapid control of AVR
- 2022-02-20 03:47:37下载
- 积分:1
-
交通灯控制的简单程序,通过此程序,可以实现简单的交通灯控制设置...
交通灯控制的简单程序,通过此程序,可以实现简单的交通灯控制设置-Traffic lights to control a simple process, through this procedure, you can realize a simple control set of traffic lights
- 2022-04-23 09:52:34下载
- 积分:1
-
编写pwm程序的时候,肯定有用的程序,自己看一看
编写pwm程序的时候,肯定有用的程序,自己看一看-Preparation program when the pwm is definitely a useful program, take a look at their own
- 2022-08-20 20:24:26下载
- 积分:1