-
实验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
-
简单的计算器,功能不多,能进行四则运算。
简单的计算器,功能不多,能进行四则运算。-Simple calculator
- 2023-05-06 18:05:03下载
- 积分:1
-
针对推挽结构MZ-LiNbO3调制器
1. 针对推挽结构MZ-LiNbO3调制器;
(1)通过MATLAB编程画出输出电场、输出功率传递函数随外加波导两臂相位差的变化曲线;
(2)确定相位调制器、强度调制器的偏置电压;
(3)假设理想条件下强度调制器消光比为20dB,通过MATLAB编程画出消光比曲线随3dB耦合器分光比的变化。(分光比R=0.45:0.05:0.55)(1. For push-pull MZ-LiNbO3 modulator;
(1) The curves of the output electric field and the output power transfer function with the phase difference between the two arms of the external waveguide are drawn by MATLAB programming.
(2) Determine the bias voltage of phase modulator and intensity modulator;
(3) Assuming that the extinction ratio of intensity modulator is 20 dB under ideal conditions, the extinction ratio curve of intensity modulator varies with the splitting ratio of 3dB coupler by MATLAB programming. (Spectrum ratio R = 0.45:0.05:0.55))
- 2020-12-01 12:49:26下载
- 积分:1
-
Linux_3.x.x_4.x.x_VCP_Driver_Source
usb can 驱动程序,用于调试运行usb can(USB can driver, so you can use it to debug usb can)
- 2020-06-15 22:22:58下载
- 积分:1
-
一个漂亮的下拉日历,在数据库编程中经常会用到的时间界面。...
一个漂亮的下拉日历,在数据库编程中经常会用到的时间界面。-A beautiful drop-down calendar
- 2022-03-06 09:33:28下载
- 积分:1
-
VB动画版“关于”窗口,带拉幕和滚动字幕效果
VB动画版“关于”窗口,带拉幕和滚动字幕效果,拉幕式动画“关于“窗口,用来制作软件的”“关于”对话框之类的比较合适,打开窗口后,点击“关于本软件”后会弹出一个带滚动字幕的拉幕窗口,动画效果流畅,还可调节速度,文字由下向上滚动,背景可随机颜色。当点击“退出”时,幕布会动画合拢。拉幕的动画效果以及文字滚动效果是比较实用的VB技巧。
- 2022-02-13 15:51:19下载
- 积分:1
-
vumat
弹塑性损伤本构用于动力学显式分析,可以计算损伤场,残余应力应变(Elastoplastic damage constitutive model for dynamic dynamic analysis)
- 2021-01-09 23:18:50下载
- 积分:1
-
千年atz影子
说明: 千年完美影子补丁。全部显示,很好用,私服无敌,不卡位置(Millennium perfect shadow)
- 2020-03-30 13:19:47下载
- 积分:1
-
5529-lcd
msp430 f5529 连接lcd1602 驱动程序代码 字符 字符串(msp430 f5529 Connect LCd1602 Driver Code Character String)
- 2020-06-21 04:00:02下载
- 积分:1
-
mimo_mpc
实现MIMO的MPC仿真,参数可调节。并且包含干扰和模型失配的仿真。(an implement of MOMO MPC.)
- 2021-01-11 10:48:49下载
- 积分:1