-
实验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
-
209433rtw_ug
说明: 遗传算法的入门,简单实用的例子,用心看,都能会的。希望对大家有所帮助,希望都能学以致用。(The introduction of genetic algorithm, simple and practical examples, look carefully, will be able to. I hope it will be helpful to all of you, and I hope you can apply what you have learned.)
- 2020-06-23 09:00:02下载
- 积分:1
-
prjconverter
把vc++7工程转换为vc++6的小工具。用法:prjconverter c: mpetterxmletterxml.sln(VC++7 to VC++6 project converter)
- 2010-09-18 07:09:06下载
- 积分:1
-
Physical-Layer-Network
说明: 物理层的网络编码机制以及实现功能,学习网络编码很好的资料(Physical layer network coding mechanism and the implementation function, learning good information network coding)
- 2010-04-19 16:35:57下载
- 积分:1
-
maxdos
此压缩包内含迈思工作室制作的 maxdos.img 镜像(This package contains the maxdos.img mirror Smythe studio)
- 2017-10-25 13:48:47下载
- 积分:1
-
gfdm-lib-matlab-master
说明: matlab仿真代码,适合初学者学习,包括产生GFDM信号并于OFDM进行PAPR比较(Matlab simulation code, suitable for beginners to learn.)
- 2021-04-07 11:49:01下载
- 积分:1
-
XC8_UG_EE
基于stm32平台的lora点对点通信,以及其他源代码,超级好(base on mirochip PIC MCU Tuch function C resource files)
- 2018-03-26 20:21:08下载
- 积分:1
-
基于Weber公式的齿轮啮合刚度计算公式1
对于直齿轮的齿轮啮合刚度进行计算,省去了手动计算的烦恼,很好(Calculation of gear meshing stiffness)
- 2017-11-22 17:14:06下载
- 积分:1
-
Vissim 到 visuol visulbasic
Vissim 到 visuol visulbasic Vissim ile visulabasic referans ekleyerek similasyonda ki parametreleri okumak veya yeni değerleriyle 设置 etmek için yazılmış 标准 bir uygulama
- 2023-05-27 23:20:02下载
- 积分:1
-
SD MMC card reader of a program, we can write ourselves a reader
SD MMC 的一个读卡程序,大家可以自已写一个读卡器-SD MMC card reader of a program, we can write ourselves a reader
- 2022-07-27 19:07:11下载
- 积分:1