-
实验3
1、单向通信
向甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;并将a的值取反从P0口输出,控制D0、D1、D2、D3相应点亮。乙方接收到数据并偶校验正确后,将接收数据取反从P0口输出,控制D0、D1、D2、D3相应点亮。
2、双向通信
甲方连续不断地发送变量a的值,未按键,a=0x0f,按键后根据按键确定a值;乙方未按键不发送,按键后将乙方按键得到的a*16发送;甲乙双方都将发送数据与接收数据相或后再取反,从P0口输出控制D0—D7相应点亮。
3、间隔发送
未按键,甲方不发送数据,按键后甲方每隔50ms连续发送4个字节:0xff、a、a、a。
乙方只在收到甲方数据0xff后的3个数据并验证相同时,才将接收数据*16发送。
甲乙双方都将发送数据与接收数据相或后,从P0口输出控制D0—D7相应点亮。(1. One-way communication
The value of variable a is continuously sent to Party A without key, a = 0x0f. After the key is pressed, the value of a is determined according to the key; and the value of a is output from P0 port to control the corresponding lighting of D0, D1, D2 and D3. After receiving the data and checking it correctly, Party B will output the received data from P0 port and control D0, D1, D2 and D3 to light up accordingly.
2. Two-way communication
Party A continuously sends the value of variable a without key, a = 0x0f, and determines a value according to the key after the key; Party B does not send the key without key, and sends the a*16 obtained by the key after the key is pressed; Both parties will send the data to or from the receiving data, and then retrieve the data and control D0-D7 from the P0 port to light up accordingly.
3. Interval Sending
Without keys, Party A does not send data. After keys, Party A sends 4 bytes continuously every 50 ms: 0xff, a, a.)
- 2020-11-16 09:29:42下载
- 积分:1
-
JQuery
说明: Jquery 完整教程。供大家参考!!!(teach full Jquery book)
- 2020-06-25 03:20:01下载
- 积分:1
-
CH452-code
routines of CH452, you can use these functions in your c51 project.
- 2011-07-25 17:07:28下载
- 积分:1
-
6682371
说明:
- 2018-02-04 15:23:28下载
- 积分:1
-
C#资源管理器树控菜单实例
C#资源管理器树控菜单实例,虽然界面不怎么样,不过实现了一个资源管理器的基本功能,包括图标显示方式、树形菜单的应用等,对想学习C#基础界面知识的新手来说,程序可参考的地方还挺多。编译注意,窗体上的那些图片资源有的搞丢了,编译进会提示有错误,不理会就是了。
- 2023-02-27 19:45:03下载
- 积分:1
-
算符优先分析法设计与实现
说明: 实现了算法优先分析的功能,可当作编译原理实验报告使用。压缩包内具有完整的实验报告(It realizes the function of priority analysis of algorithm and can be used as compiler principle experiment report. Compressed package with complete experimental report)
- 2020-06-22 15:20:03下载
- 积分:1
-
gen_mon
使用万德QuantApi (vba) 实现的自选股监控器, 纯vba实现, 目前支持自定义量比指标AAR(The use of QuantApi (VBA) to achieve the memtech zishuagu monitor, pure VBA implementation, the current support for custom ratio index AAR)
- 2018-02-25 21:07:41下载
- 积分:1
-
Rossler
混沌吸引子的产生程序,演示了混沌吸引子的奇妙变化,适合初学者。(Chaotic attractor of the generation process, to demonstrate chaotic attractor of the wonderful changes, suitable for beginners.)
- 2007-10-09 16:35:01下载
- 积分:1
-
HideTrayIcon
隐藏windows系统托盘中指定进程名的图标,(Hide tray icons in the specified process name and refresh)
- 2021-01-28 13:28:36下载
- 积分:1
-
传统超声成像算法
用于超声成像的matlab仿真,有需要的可参考一下(Matlab simulation for ultrasound imaging, there is a need for reference.)
- 2020-12-13 17:09:15下载
- 积分:1