-
实验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
-
Communication-Theory-Sixth-Edition-
通信原理第六版(国防+曹丽娜+樊昌信)课本(Communication Theory Sixth Edition (Defense+ Cao Lina+ Fan Changxin) Textbook)
- 2013-07-12 14:22:27下载
- 积分:1
-
Learning to use srgp, to learn a new software to use.
学习使用srgp,学习一种新的软件使用。-Learning to use srgp, to learn a new software to use.
- 2023-06-24 20:40:02下载
- 积分:1
-
ecmwfapi
基于python程序下载欧洲中长期天气预报中心模式预报数据(Download forecast ECMWF data based on Python program)
- 2020-12-15 12:59:16下载
- 积分:1
-
refraction
说明: 来源于雷达系统分析与设计(matlab版)(From Radar System Analysis and Design (matlab version))
- 2020-06-18 09:00:01下载
- 积分:1
-
基础计算
说明: 1.熟悉 MATLAB 的命令窗口。 2.掌握 MATLAB 的一些基本操作,能够进行一般的数值计算。 3.实现语句的重调和修改(1. Familiar with the command window of MATLAB. 2. Master some basic operations of MATLAB, and can carry out general numerical calculation. 3. Re-tuning and Modification of Implementing Statements)
- 2019-03-29 14:04:07下载
- 积分:1
-
BM77SPP03
bm77spp03mc2-0007aa 开发手册(bm77spp03mc2-0007aa Development Manual)
- 2017-03-29 22:54:37下载
- 积分:1
-
读写内存变量文件
读写内存变量文件-or memory variable documents
- 2022-12-27 06:30:03下载
- 积分:1
-
Interface with the use of Visa communications Keithley2000 multimeter, LabVIEW P...
利用Visa接口与Keithley2000万用表通信,LabVIEW编程-Interface with the use of Visa communications Keithley2000 multimeter, LabVIEW Programming
- 2023-02-17 08:40:03下载
- 积分:1
-
Matlab_GUI教程
说明: MATLAB GUI教程。入门必备。适合新手。完整pdf(Matlab GUI tutorial. Complete pdf)
- 2019-12-03 15:30:37下载
- 积分:1