-
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
-
18B20_51_keil show that the temperature has not yet debug debugging on the OK as...
18B20掼51掼keil显示,温度还没调试好就调试好,只要一点点就行
- 2022-07-26 08:01:24下载
- 积分:1
-
这是CS5460芯片测试电源显示更多中国内..
这是关于电能检测芯片CS5460的说明,里面有多篇中文资料,还有汇编语言例子.-This is the power of the CS5460 chip testing shows that more of Chinese inside information, there are examples of assembly language.
- 2022-02-20 12:55:39下载
- 积分:1
-
单片机RS232/RS485串行发送实验(双机通讯)。
实验步骤:
(1),准备两台598K实验机,确定1号机为发送,2号机为接收;...
单片机RS232/RS485串行发送实验(双机通讯)。
实验步骤:
(1),准备两台598K实验机,确定1号机为发送,2号机为接收;
(2),当作RS232接口实验时,1号机和2号机的P3.0和P3.1交叉相连,且两机共地;
(3),当作RS485接口实验时,1号机和2号机的A、B作对应连接,同时1,2号机的R/TEN接P1.0, P3.0接R0, P3.1接DI。
(4),先运行2号机,键入[27]-->[EV]使2号机处于接收状态P。,后运行1号机[26]-->[EV]使1号机处于发送状态,P。会闪烁,在1号机键盘上按动数字键,在2号机的数码管上应显示对应的数字键值。-Send Singlechip RS232/RS485 serial experiment (two-plane communications). Experimental steps: (1), prepare two sets of experiments 598K machine, determined on the 1st machine to send, on the 2nd machine to receive (2), as a RS232 interface experiment, on the 1st and the 2nd machine and P3.0 P3.1 cross-linked, and the two planes were to (3), as a RS485 interface experiment, on the 1st and the 2nd machine A, B for the corresponding connection, while 1,2 No. of R/TEN then P1 .0, P3.0 access R0, P3.1 then DI. (4), first run on the 2nd machine, type [27]
- 2022-02-28 17:08:56下载
- 积分:1
-
这是一个信通时代的汉字显示模块的编程,可以显示中文字体
这是一个信通时代的汉字显示模块的编程,可以显示中文字体-This is an era of ICT Chinese character display module programming can demonstrate that the Chinese font
- 2022-05-20 09:54:29下载
- 积分:1
-
C51 is a classic single
c51 是经典的单片机,简单,精通51单片机,在学习其他的单片机 很易上手-C51 is a classic single-chip, simple, fluent in 51 single-chip, single-chip microcomputer in the learning of other very易上手
- 2022-07-26 06:18:52下载
- 积分:1
-
对16*2字符型点阵驱动的C51代码,已经在拓普微上测试通过。
对16*2字符型点阵驱动的C51代码,已经在拓普微上测试通过。
- 2023-02-17 09:05:04下载
- 积分:1
-
图形显示12232检测要用keil生成hex再用
图形显示12232检测要用keil生成hex再用-Graphical display generated 12,232 detection using keil reuse hex
- 2023-06-02 13:25:03下载
- 积分:1
-
超声波检测C代码源程序,单片机嵌入式软件程序设计
超声波检测C代码源程序,单片机嵌入式软件程序设计-Ultrasonic testing C code source, single-chip embedded software programming
- 2022-03-17 19:48:18下载
- 积分:1
-
ARM 44b0x the D12 interface source code, debugging and has passed
ARM 44b0x的D12接口源代码,并且已经调试通过-ARM 44b0x the D12 interface source code, debugging and has passed
- 2022-04-16 21:17:45下载
- 积分:1