-
实验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
-
数据结构
合肥工业大学数据结构课件
非常基础
适合入门(Data Structure Courseware of Hefei University of Technology
Very basic
Suitable for entry)
- 2020-06-20 21:20:02下载
- 积分:1
-
hunatcha
Source code of computer viruses
Worm for Windows
---------------------------
Hunatcha by Undermine
Author s description
* Run at every startup
* Infect drives & files
* P2P Process
* Taskkill av
The main reason for this virus is to show you how works, so this is why i added that variable. Sorry for the mess but like i said
it s mostly to explain my virus. Peoples interessed in this technic should also rewrite DATA d32, in line w32.
It also change register usage, but using a more advanced technic update taskkill.
- 2011-06-04 05:24:35下载
- 积分:1
-
5702 DEMO_20161102_V2.1
SN8F5702 MCU DEMO程序_20161102(SN8F5702 MCU DEMO_20161102_V2.1)
- 2021-01-20 14:28:42下载
- 积分:1
-
Whook 7.587-83
whook, nao posso escrever mais porque nao entendo chines e os campso vao ficar assim mesmo ta bom, entao ta, valeu falou vou fumar, olha ali o superman, no ceu tem pao e morreu.
- 2020-06-23 15:20:01下载
- 积分:1
-
策略模式-基本代码
this is a test upload.... let me upload it for testing purpose please.. i really want to download a file
- 2020-06-24 07:40:01下载
- 积分:1
-
chap3-src
这是一个俄罗斯方块的游戏,是用C语言编的(This is a Tetris game, is to use C-series)
- 2008-04-02 21:33:08下载
- 积分:1
-
PDPTW-GGA
说明: 用组群遗传算法实现的PDPTW问题解决程序。(PDPTW problem solving program based on group genetic algorithm.)
- 2019-05-20 15:25:11下载
- 积分:1
-
在图像加密过程中,对像素进行行列置乱时
说明: 在图像加密过程中,对像素进行行列置乱时,用到的可以改变像素的位置。(In image encryption, row and column scrambling of pixels)
- 2020-06-17 07:40:01下载
- 积分:1
-
matlab生成dll方法的心得体会
matlab生成dll方法的心得体会(Experience of generating DLL by MATLAB)
- 2020-06-15 22:50:02下载
- 积分:1