-
实验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
-
Visio a simple procedure.
一个简单的visio程序。-Visio a simple procedure.
- 2023-02-27 13:35:04下载
- 积分:1
-
FULL_bridge_DAB_openloop
DC-DC变换器的双有源桥DAB拓扑的MATLAB仿真,开环仿真(MATLAB simulation of dual active bridge DAB)
- 2017-06-05 19:48:02下载
- 积分:1
-
TouchExplorer
组态王6.53无限点破解,无时间限制,亲测好用(Kingview 6.53 Infinite Point Cracking)
- 2020-06-25 08:40:02下载
- 积分:1
-
ICCProfiles
ICC Profiles and Monitor Settings Database - TFTCentral
- 2020-06-18 11:20:02下载
- 积分:1
-
Visa 写入和读取
说明: Labview VISA读取和发送的例程,介绍了如何利用VISA读取和发送数据给串口(Labview VISA read and write samples)
- 2021-01-10 09:32:46下载
- 积分:1
-
VB也疯狂-16种窗口关闭特效
VB也疯狂-16种窗口关闭特效,可惜抓不到图,自己下载源码编译一下吧。16种窗口关闭效果,有的带动画效果,让你的程序窗口更生动吧。
- 2022-01-25 21:40:26下载
- 积分:1
-
pb生成二维码_125
pb生成二维码_125生成二维码生成二维码(Generating two-dimensional codes,)
- 2020-06-16 15:00:02下载
- 积分:1
-
E语言源代码,有喜欢的都来看下,如果好用就保留不好用就
E语言源代码,有喜欢的都来看下,如果好用就保留不好用就-E-language source code, there are look like, if not with ease of use on the reservation on the
- 2023-05-22 11:05:04下载
- 积分:1
-
最小二乘解包裹算法
说明: 最小二乘法解包裹算法可以在光栅法三维重建时由相对相位求取绝对相位。(The least square unwrapping algorithm can obtain the absolute phase from the relative phase in the three-dimensional reconstruction of raster method.)
- 2019-03-21 15:35:47下载
- 积分:1