-
实验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
-
在MATLAB中显示了WCDMA的仿真,并在SIMULINK中仿真通过
在MATLAB中显示了WCDMA的仿真,并在SIMULINK中仿真通过-WCDMA is shown in the MATLAB simulation and the simulation by SIMULINK
- 2022-03-26 15:08:06下载
- 积分:1
-
PLC1
信捷PLC控制2轴伺服!!!!!!!!1(Two-axis Servo Controlled by Xinjie PLC)
- 2020-06-23 11:40:02下载
- 积分:1
-
常用元器件PCB封装大全,包含各种常用器件的封装,给设计带来方便...
常用元器件PCB封装大全,包含各种常用器件的封装,给设计带来方便-Encyclopedia of components commonly used PCB package, including a variety of commonly used device package, designed to bring convenience to
- 2022-03-13 02:04:46下载
- 积分:1
-
游戏移动的源代码
source code about game mobile
- 2022-02-01 10:59:18下载
- 积分:1
-
cantilever-beam-master
说明: 计算梁单元的形函数,单位质量矩阵等,及其有限元组装,模拟运动情况。(The shape function and unit mass matrix of the beam element are calculated, and its finite element assembly is carried out to simulate the motion.)
- 2019-03-18 09:38:13下载
- 积分:1
-
LC并联谐振-matlab仿真
说明: LC并联谐振的MATLAB仿真模型,可以验证并联谐振(MATLAB simulation of LC parallel resonance)
- 2019-05-14 11:06:00下载
- 积分:1
-
半透明的C#圆形状时钟
半透明的C#圆形状时钟,圆形电子表,指针风格的电子时钟特效,基于VS2008编写,本程序看上去是一个时钟程序,实则很多技巧来源于窗体编程,比如设置窗体透明度、是否显示电子表边框、开启自启动、在托盘显示图标、窗体置顶、自动隐藏等,对学习C#的窗体编程有不小的帮助。
- 2022-03-24 06:29:59下载
- 积分:1
-
GNN_1_1b
基于GNN神经网络的系统仿真,具有较好的仿真效果。(Based on GNN neural network system simulation, has a good simulation results.)
- 2020-07-03 13:00:01下载
- 积分:1
-
直流微电网储能系统双向DCDC变换器控制策略研究
说明: 该文件为半桥式双向dc-dc充放电的仿真,仿真中含有蓄电池,并模拟了电压阶跃(This paper is the simulation of half bridge bi-directional DC charging and discharging, in which the battery is included and the voltage step is simulated)
- 2020-04-13 14:18:22下载
- 积分:1