-
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
-
这是Beagle_Allegro_B 板子的PCB图,供大家画图时参考使用
这是Beagle_Allegro_B 板子的PCB图,供大家画图时参考使用-This is the PCB board Beagle_Allegro_B map, drawing reference to use for everyone
- 2023-07-15 09:50:04下载
- 积分:1
-
有关74hc080的一些相关资料,希望可以帮助大家,它多用于IC卡读取了!...
有关74hc080的一些相关资料,希望可以帮助大家,它多用于IC卡读取了!-74hc080 some of the relevant information, I hope can help everyone, it used the IC card reader!
- 2022-03-22 22:16:23下载
- 积分:1
-
Queue
基于队列的Mega8 UART通信驱动程序
文件名:uart.c
编译:WinAVR-20070122
硬件:CA-M8X
时钟:外部4MHz-Queue-based communication Mega8 UART Driver file name: uart.c Compiler: WinAVR-20070122 HW: CA-M8X clock: external 4MHz
- 2022-04-11 09:42:48下载
- 积分:1
-
一款单片机开发板的资料,对于想设计开发板的人有知道作用,看看别人怎么做到的。...
一款单片机开发板的资料,对于想设计开发板的人有知道作用,看看别人怎么做到的。-new microcontroller development board information for the design and development board would have to know the role and see how others do.
- 2022-08-15 09:34:30下载
- 积分:1
-
矩阵键盘键值显示和液晶程序
矩阵键盘键值显示和液晶程序-LCD.汇编-Matrix liquid crystal display and a keyboard key process-LCD. Compilation
- 2022-03-09 17:09:08下载
- 积分:1
-
mm36sb020存储器与单片机连接时的读写程序!里面还包含了与单片机的接口!...
mm36sb020存储器与单片机连接时的读写程序!里面还包含了与单片机的接口!-mm36sb020 They also include interface with microcontroller!
- 2023-07-13 15:20:03下载
- 积分:1
-
msp430单片机控制输出PWM波,可以用来控制DC_DC变换用的控制信号,很好用...
msp430单片机控制输出PWM波,可以用来控制DC_DC变换用的控制信号,很好用-MSP430 single chip microcomputer to control the output PWM waves, can be used to control DC_DC transform the control signals used, very good use
- 2022-06-16 15:57:36下载
- 积分:1
-
用51单片机读取CF卡的程序。对许多项目有参考价值
用51单片机读取CF卡的程序。对许多项目有参考价值-51 microcontroller with CF card reader procedures. Many of the projects to be a valuable reference
- 2022-08-06 15:41:31下载
- 积分:1
-
ATmega8+315M或433.92M的超再生接收头+1602六线控制的1602显示解到的码...
ATmega8+315M或433.92M的超再生接收头+1602六线控制的1602显示解到的码-ATmega8+ 315M or 433.92M the超再生receive the first+ 1602 six-lane controlled display solutions to the 1602 Code
- 2022-02-11 11:50:41下载
- 积分:1