搜索资源列表
上古神器
- 代码模拟了龟兔赛跑爬山的情况,其中有个时钟触发设置每秒执行一次循环,乌龟的规则是:50% 的机会快走(右移三格) 20% 的机会下滑(左移六格) 30% 的机会慢走(右移一格). 兔子的规则是:20% 的机会睡觉(不移动) 20% 的机会大跳(右移九格) 10% 的机会大滑(左移十二格) 30% 的机会小跳(右移一格) 20% 的机会小滑(左移两格). 其中最先走到整 70 格的胜利,超过 70 格的从头开始 程序在一条线上打印了龟兔移动的轨迹,当两者重合时打印 P 乌龟
7279c
- HD7279A测试程序(C语言) 闪烁指令及键盘接口测试 快速计数演示 消隐指令测试 循环左/右移测试 \"三\"字向右运动3次,再向左运动3次 -HD7279A test procedure (C language) scintillation instructions, and keyboard interface tests demonstrated rapid count refers blanking so test cycle left / shift t
KeilC-8-LED
- Keil C做的8个LED灯循环左移右移-Keil C do eight LED lights cycle bits shifted to the right
shift
- 移位寄存器,异步清零,异步置数,左移右移可控,具有循环移位功能
s-des算法分析及实现
- :DES体制是ISO颁布的数据加密标准,通过对DES算法的分析,提出了用C语言实现数据加密标准DES算法,通过循环或迭代,将简单的基本运算(例如左移、右移、模2加法等)和变换(选择函数、置换函数)构造成数据流的非线性变换(加密变换或解密变换),从而实现对计算机数据进行密码保护。着重介绍了用C语言实现其加密的主要过程。关键词:数据加密 DES C语言-: DES system is ISO issued by the Data Encryption Standard, DES algorithm
龟兔赛跑的小游戏
- 面这段代码模拟了龟兔赛跑爬山的情况,其中有个时钟触发设置每秒执行一次循环,乌龟的规则是:50% 的机会快走(右移三格) 20% 的机会下滑(左移六格) 30% 的机会慢走(右移一格). 兔子的规则是:20% 的机会睡觉(不移动) 20% 的机会大跳(右移九格) 10% 的机会大滑(左移十二格) 30% 的机会小跳(右移一格) 20% 的机会小滑(左移两格). 其中最先走到整 70 格的胜利,超过 70 格的从头开始 程序在一条线上打印了龟兔移动的轨迹,当两者重合时打印 P 乌龟用 G 表示,兔子
在六个数码管滚动显示自己的学号(六位)
- 在六个数码管滚动显示自己的学号(六位),每隔一定时间循环移位一次,学号为奇数则左移,学号为偶数则右移。间隔时间可由开关选择1秒,2秒,3秒和4秒。-In the six LED scrolling display their student number (six), rotate once every certain period of time, learning number is odd, then the left, student number is even, then the r
ALU1
- ALU 指令格式(16位) op DR SR fun 0--3 4—7 8--11 12--15 指令类 OP码 指令 FUN 功能描述 控制 0000 NOP 0000 空指令 HLT 0001 停机 有条件跳转 0010 JZ 0000 Z=1,跳转 JC 0001 C=1,跳转 JNC 0010 C=0,跳转 JNZ 0100 Z=0,跳转 Jump 0101 无条件跳转 LOAD 001
01
- LED字符显示屏 一、设计任务 设计制作一个16行×16列的点阵 LED显示屏,按要求循环显示指定内容。 二、设计要求 1.基本功能 (1)在一块16×16 LED显示屏上,循环地逐字显示“河池学院2008年电子设计竞赛”文字串。要求显示清晰、稳定、不闪烁,每字符停留0.5s左右。 (2)切换显示由计算机通过串行通讯接口发送来的文字串,文字串长度不小于10个字符,内容可在计算机上任意输入。 (3)能设置改变每字符显示停留时间,调节范围:0.1s ~ 2s。
ZD01
- 单片机P1端口的8个LED作左移右移,不断循环。当按外部中断INT0开关K1时,循环停止,转而使8个LED闪烁4次。之后,又恢复灯的左右移循环。-Singlechip P1 port 8 LED for the left shifted to right, and constantly cycle. When by external interrupt INT0 switch K1, the cycle of stop and turn to make eight LED flashes 4 t
liushuideng
- 流水灯 1.P1口所有LED间隔1000ms闪烁 2.P1口所有LED呈交替流水状 3.P1口流水灯-左移,循环3次 4.P1口流水灯-右移,循环3次 5.P1口由两边向中间流水,循环3次 6.P1口由中间向两边流水,循环3次-I water all the LED lights 1.P1 interval 1000ms I 2.P1 all the LED flashes alternating water was flowing like I 3.P1 lights-
GGD
- 单一灯的左移右移分别接在单片机的P1.0-P1.7接口上,输出“0”时,发光二极管亮,开始时P1.0→P1.1→P1.2→P1.3→┅→P1.7→P1.6→┅→P1.0亮,重复循环-A single light, respectively, shifted to right then left at P1.0-P1.7 microcontroller interface, the output " 0" when the bright light-emitting diode,
ShiftedtoRightofTheLeftAdvertisingLights
- 做单一灯的左移右移,硬件电路如图4.4.1所示,八个发光二极管L1-L8分别接在单片机的P1.0-P1.7接口上,输出“0”时,发光二极管亮,开始时P1.0→P1.1→P1.2→P1.3→┅→P1.7→P1.6→┅→P1.0亮,重复循环。-Left to do a single light shifted to right, the hardware circuit as shown in Figure 4.4.1, eight light-emitting diodes L1-L8, resp
liushuideng
- 通过修改程序,控制八盏灯的亮灭状态。(实验指导书P30-36) 控制流水灯每次亮2盏,循环左移、右移 DS1、DS3、DS5、DS7半亮,其余的全亮。 DS1亮1/8,DS2亮2/8,DS3亮3/8,DS4亮4/8,DS5亮5/8,DS6亮6/8,DS7亮7/8,DS8全亮-By modifying the procedures, controls eight bright lights out of state. (Experimental instructions P30-36)
shumaguanyouyi
- 单片机数码管动态循环右移c程序,已通过测试,在keil环境可生成.hex文件-Single chip microcomputer digital tube dynamic cycle moves to the right c program, has passed the test, can be generated in keil environment. Hex file
zhongduanxitong
- 使用定时器1中断让8个LED循环右移,间隔500ms,同时使用定时器0中断方式 让数码管前2位间隔1000ms从0显示到60,如果有外部中断产生则停止数码管走数. (外部中断0低电平触发方式) -Use timer 1 interrupt let 8 LED right, 500ms interval, at the same time using timer 0 interrupt mode Let the digital control of the top 2 interv
huayangdeng
- 花样灯,实现数码灯的循环左移,后循环右移,最后奇数灯亮,后偶数灯亮-Mood lights, digital lights rotate left, after rotate right, the last odd-numbered lights, after an even number of lights
huayangdeng
- 花样灯,实现数码灯的循环左移,后循环右移,最后奇数灯亮,后偶数灯亮-Mood lights, digital lights rotate left, after rotate right, the last odd-numbered lights, after an even number of lights
b1
- 通过ATmel公司的mega328p芯片作为核心,使用4段移位数码管,通过usb连接电脑串口。用arduino的串口侦查器发送命令实现: 1.显示任何4位数(含小数)。 2.对改数进行末位加一(不进位)。 3.对改数进行乘十,当到达无小数点时自动变成除十,当小到无法显示自动变成乘十。 4.循环左移和循环右移(小数点位置不变)。(Through ATmel company's mega328p chip as the core, the use of 4 segment digital t
实验一
- 1、设线性表的数据元素都为整数,存放在顺序表S中且递增有序。设计算法,将x插入到顺序表S的适当位置上,以保持线性表的有序性。 2、线性表使用顺序表作存储结构,设计算法,仅用一个辅助结点,实现将顺序表中的结点循环右移k位的运算。 3、设计算法,仅用一个辅助结点,实现将顺序存储的线性表中的数据元素逆置。(1. The data elements of the linear table are all integers. They are stored in the sequential tabl