-
实验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
-
在 QML 控件上应用自定义默认风格
翻译maninwest@Codeforge作者:Marco Bertschi@CodeProjectQML 技术让你可以创建一个独立于平台的 UI。当前的 Qt 版本 5.2 可以让你创建一个运行在 Linux, Windows, OS X, iOS 和 Android 上的单个 GUI且无需更改代码库。这里提供的例子是如何使用类似于 CSS 的方式来设计 QML 控件风格并让这些控件可重复使用。
- 2022-09-19 15:20:03下载
- 积分:1
-
KVM详解
说明: 学习KVM,介绍,安装,架构,详解,通俗易懂,适合新手(KVM Function Detailed)
- 2020-06-22 16:00:01下载
- 积分:1
-
无线电测向信号处理算法,西电的硕士论文Wirelss_of_signalProcess3
无线电测向信号处理算法,西电的硕士论文。(Radio direction finder signal processing algorithms, the West)
- 2020-07-12 06:18:53下载
- 积分:1
-
array
用引用的方法求二维数组的最大值及其下标,谭浩强书上的(Use the methods to controls.)
- 2012-03-29 16:55:52下载
- 积分:1
-
固伟电源
说明: 详细介绍了可编程电源各种操作,各种指令控制,LABVIEW 控制动态连接库(The operation of programmable power supply, instruction control and dynamic connection library controlled by LABVIEW are introduced in detail)
- 2020-01-04 10:01:24下载
- 积分:1
-
Delphi 智能监视系统 源代码范例
Delphi 智能监视系统,此为源代码部分,程序和目前的视频监控系统的基本功能大致相同,可设置视频拍摄参数、驱动器选择、捕捉参数设置、系统配置、窗口大小调整、画面比例设置、实时监视设置,视频频率调整等,运行效果如图所示。
- 2022-01-31 07:21:33下载
- 积分:1
-
C#实现对数字的加密
C#实现对数字的加密,这是一个源代码例子,对阿拉伯数字加密,比如可把“123”加密成不可读的特殊字符。在代码中:KeyValue值:录入键区0~9 48~57 数字键区0~9 96~105, End键的KeyValue值:35,并定义了相关的快捷键:如果用户按下了〈Ctrl〉+〈Shift〉+〈End〉组合键,则直接退出,录入键区的“1”与数字键区的“1”共享同一操作。。
- 2022-10-07 01:55:03下载
- 积分:1
-
LibraryLoaderSetup2v36.msi
说明: just to dislay logo
- 2019-03-26 21:36:57下载
- 积分:1
-
rsi
RSI mt4 mql4 indicator
- 2018-09-28 14:49:28下载
- 积分:1