-
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
-
hongwaiyuanmachenxu
基于单片机定时器的数字钟-动态扫描.
C元码-hongwaiyuanmachenxu
- 2023-03-05 09:05:03下载
- 积分:1
-
ATMEGA128 introduced the use of the AD, in great detail, it is worth a cut, but...
介绍了ATMEGA128的AD使用,很详细,值得一砍,不过是E文的-ATMEGA128 introduced the use of the AD, in great detail, it is worth a cut, but the text is E.
- 2022-01-25 20:00:29下载
- 积分:1
-
this is only a demo ICCAVR Calling assembly language interrupt function examples...
这仅仅是一个用于演示ICCAVR中调用汇编语言中断函数的实例,这个演示的处理方法也可以用于一般非中断汇编函数的调用。本实例中演示了字节变量和字变量在汇编中的引用和运算处理-this is only a demo ICCAVR Calling assembly language interrupt function examples, the presentation approach also can be used for general non-interrupted compilation function call. This example demonstrates a variable byte characters and variables in the compilation of the application and processing operations
- 2022-06-21 13:30:49下载
- 积分:1
-
实现stc12c5410ad/stc12c2051单片机ad转换和pwm功能
实现stc12c5410ad/stc12c2051单片机ad转换和pwm功能-Single-chip implementation stc12c5410ad/stc12c2051 function ad conversion and pwm
- 2022-02-15 07:34:30下载
- 积分:1
-
测试LPC2103的串口功能
打印出:
program start here:
new line
new line...
测试LPC2103的串口功能
打印出:
program start here:
new line
new line-LPC2103 test print out the serial port function: program start here: new line new line
- 2022-03-20 17:14:19下载
- 积分:1
-
51单片机基础训练项目之通用红外遥控器,包含了PPT等课件,看了你就会了。...
51单片机基础训练项目之通用红外遥控器,包含了PPT等课件,看了你就会了。-51 MCU-based training programs, universal infrared remote control
- 2022-01-26 05:20:08下载
- 积分:1
-
AVR应用测试LCM模块,ICCAVR编译器编辑。
测试LCM模块AVR应用,ICCAVR编译器编辑。-AVR application testing LCM module, ICCAVR compiler editor.
- 2022-11-08 14:40:03下载
- 积分:1
-
AD9850 DDS control subroutine Singlechip often to do other experiments, not yet...
AD9850 DDS控制子程序
经常做其他的单片机实验,还没做过DDS的实验。最近打算写个程序试验一下。
-AD9850 DDS control subroutine Singlechip often to do other experiments, not yet done DDS experiment. The recent plan to write a program to test.
- 2023-03-01 03:15:03下载
- 积分:1
-
用keil c语言介绍8051单片机开发一本书 很不容易才找到的啊!
用keil c语言介绍8051单片机开发一本书 很不容易才找到的啊!-language used Keil 8051 development on a book not easy to find the ah!
- 2022-06-03 14:29:46下载
- 积分:1