-
实验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
-
wordpress-5.2.2
二次开发,可以用来做战群。用什么bug可以联系到我(Secondary development can be used as a battle group. What bugs can I get in touch with?)
- 2020-06-16 06:20:01下载
- 积分:1
-
CEENDAN代码上传
说明: EMD改进版CEEMDAN,具体详见百度(CEEMDAN algorithm further reduces the modal effect by adding adaptive noise and has better convergence good)
- 2020-10-18 16:57:26下载
- 积分:1
-
用于个人网站建设用的星座运行代码 用HIML语言编的
用于个人网站建设用的星座运行代码 用HIML语言编的-personal website for the constellation run code with language series hole
- 2022-01-26 00:29:35下载
- 积分:1
-
yei_mg26
现代信号处理中谱估计在matlab中的使用,ICA(主分量分析)算法和程序,针对EMD方法的不足。( Modern signal processing used in the spectral estimation in matlab, ICA (Principal Component Analysis) algorithm and procedures, For lack of EMD.)
- 2017-04-07 00:24:17下载
- 积分:1
-
solut4-4th
Pattern_Recognition_4nd _CH4-solution
- 2010-12-14 20:47:48下载
- 积分:1
-
小波神经网络
神经网络做回归预测,3层小波包结合在一起做预测(network regress prediction)
- 2017-10-19 15:29:54下载
- 积分:1
-
plank
说明: 用于计算黑体的辐射值,帮助初学辐射学的人加深理解,内含例子程序。(Used to calculate the radiance value of blackbody, to help beginners to deepen understanding of radiology, including example programs.)
- 2020-06-17 12:40:01下载
- 积分:1
-
closest_pair
分治法思想,求最邻近点对,考虑将所给的n个点的集合S分成2个子集S1和S2,每个子集中约有n/2个点,然后在每个子集中递归地求其最接近的点对(Divide and conquer ideas, find the nearest point to consider given the set S of n points into two subsets S1 and S2, each subset of about n/2 points, and then recursively find its focus in each sub-the closest point)
- 2013-12-07 16:46:26下载
- 积分:1
-
dope fiber amplifier zip
说明: one dimensional fluid flow of a liquid
- 2020-06-16 11:00:02下载
- 积分:1