-
实验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
-
LPC1766-BURST_8
LPC1766中的AD转换采用BURST模式,对8个通道进行电压采集,并将每个通道的数据进行均值滤波、数据转换,存入8个独立的数组中。(AD converter in LPC1766 BURST mode voltage collected eight channels, and each channel s data mean filtering, data conversion, stored in eight separate array.
)
- 2012-11-27 18:49:28下载
- 积分:1
-
ClsExcel
利用C#语言与vs开发工具实现了一个,简单的桌面贪吃蛇游戏(A simple desktop snake-eating game is implemented by using C# language and vs development tools.)
- 2020-06-25 12:40:02下载
- 积分:1
-
STM32实现三菱PLC
说明: stm32实现FX2N的PLC,用work2(STM32 implements FX2N's PLC, using work2)
- 2018-05-28 09:17:56下载
- 积分:1
-
qt自定义控件
刘大神的源代码,自定义的炫酷控件。
开关按钮。
之前刘大神在网站有时间给人发源码,只要留下邮箱,他就发送。
后来因为忙,他就不发了。
加了很多人,总算要到了。很实用。好厉害。真心喜欢。希望有用。
- 2022-07-16 05:07:40下载
- 积分:1
-
网络升级上位机源码(STM32远程升级程序)
STM32网络IAP
- 2020-11-02下载
- 积分:1
-
GLHook_by_Decad
Hooking Library for windows X86
Example with CreateProcessA CreateProcessW
(Hooking Library for windows X86Example with CreateProcessA CreateProcessW)
- 2008-12-20 05:39:51下载
- 积分:1
-
a.c
Finding special triples of the form (n, n + 1, n + 2)
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n + 1, n + 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.(Finding special triples of the form (n, n+ 1, n+ 2)
Write a program that finds all triples of consecutive positive three-digit integers each of which is
the sum of two squares, that is, all triples of the form (n, n+ 1, n+ 2) such that:
• n, n+1 and n+2 are integers at least equal to 100 and at most equal to 999
• eachofn,n+1andn+2isoftheforma2+b2.)
- 2012-04-26 15:05:05下载
- 积分:1
-
My_C_OBJ_QA
I have contributed 40 objective type c questions written as source code. Which will be helpful in learning C.
- 2014-02-20 02:40:23下载
- 积分:1
-
SPCLib
SPC过程统计分析,多用于工业中,检测产品质量,方便编写SPC(SPC process statistical analysis, mostly used in industry, to test product quality, easy to compile SPC)
- 2019-05-31 14:49:06下载
- 积分:1