-
实验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
-
VisualC++VideoMeeting
说明: VisualC++视频会议开发技术与应用 配套光盘(VC video conferencing and application development technology supporting CD)
- 2006-03-19 01:39:39下载
- 积分:1
-
BASEFILE_11_06
解算接收机伪距,载波相位等观测量,从而定位,精度较高,因为没有加载波(compute the carrier s postion)
- 2012-02-27 22:49:42下载
- 积分:1
-
Modbus
用C#实现ModBus读写功能,用作客户端读写ModBus-TCP server数据(Modbus read and write functions in C#)
- 2013-09-02 15:08:53下载
- 积分:1
-
维纳滤波
维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序维纳滤波程序
- 2022-02-02 10:54:47下载
- 积分:1
-
c++ 机器人运动学求解库 包含矩阵变换
机械臂、矩阵变换求解库。各种各样的机器人运动学求解库。
- 2023-08-18 01:35:04下载
- 积分:1
-
Harris
提取Harris角点程序,非常好用的角点提取程序(Harris corner extraction program, very easy to use corner detection process)
- 2011-05-04 20:14:58下载
- 积分:1
-
matnet_src
C#,提供C#和matlab直接的调用,使得C#能够很好的使用matlab提供的各种功能
(C#, Matlab and C# directly to the call, C# can make good use of Matlab for the various functions)
- 2007-06-09 17:05:07下载
- 积分:1
-
13-ADC
基于MSP430F149单片机设计一个8路模拟信号,8路开关信号的数据采集系统。用数码管显示采集通道和结果,循环显示各通道数据(MSP430F149 MCU-based design of a 8-way analog signals, eight-way switch signal data acquisition system. Acquisition channels with digital display and results, cycle through each channel data)
- 2013-07-24 22:17:12下载
- 积分:1
-
opencv-temp
opencv 实现模板匹配,方法对图像、视频都可用,简单、易懂!(Opencv achieve template matching procedures, simple, easy to use, can realize the matching of image, video in!)
- 2021-03-01 18:59:34下载
- 积分:1