为您找到约 223 条结果,搜索耗时:0.0079秒

FPGA上数字时钟的VHDL代码

...econd*/  input [1:0] H_in1, /*A 2-bit input used to set the most significant hour digit of the clock (if LD_time=1),or the most significant hour digit of the alarm (if LD_alarm=1). Valid values are 0 to 2. */  input [3:0] H_in0, /* A 4-bit input used to set the least significant hour di...

单片机水塔控制系统

...ep(void);main(){uchar i,j;TMOD=0x10;TL1=0xe0;TH1=0xb1;IE=0;while(1){  if(KKK!=P1)           //当P1的值发生变化,触发采集信号    loop1();  if(flg!=2)              {   for(i=0;i<=3;i++)...

步进电机控制程序液晶显示

... uchar i,j; TMOD=0x10; TL1=0xe0; TH1=0xb1; IE=0; while(1) {   if(KKK!=P1)           //当P1的值发生变化,触发采集信号     loop1();   if(flg!=2)               {    for(i=0;i&lt...

复合叶片分析和设计

...nput filesfid = fopen([SIM.rootDir filesep 'Active_Input_Files.inp'], 'r');if fid == -1    error(['ERROR: Could not locate and open file ' [SIM.rootDir filesep 'Active_Input_Files.inp']]);endinpList = textscan(fid,'%s');fclose(fid);SIM.inpFile = inpList{:};nInpFiles   = numel(SIM...

notepad

...ditor; Editor.show(); return EditorApp.exec(); } mynotepad.h#ifndef MYNOTEPAD_H #define MYNOTEPAD_H #include <QMainWindow> namespace Ui { class MyNotepad; } class MyNotepad : public QMainWindow { Q_OBJECT public: explicit MyNotepad(QWidget *parent = 0)...

基于VHDL的可变占空比PWM发生器

... clock enable for deboucing (4Hz)  process(clk)  begin   if(rising_edge(clk)) then    counter_slow <= counter_slow + x"0000001";    --if(counter_slow>=x"17D7840") then -- for running on FPGA -- comment when running simulation    if(counter_slo...

贪吃蛇+俄罗斯方块+万年历

...gt; #include "18b20.h" #include "1302.h" #include "12864.h" #include "zifu.h" uchar k,direction; bit flag; bit flag5=0;    //flag5是外部中断1的标志位 flag1是步进标志 uchar p,dengji;               //定时次数  bit flag...

万年历

...nbsp;             case(0xfe) :   // if(result==0xfe)    //秒调整 +                          {                       &nbsp...

python 实现广度优先排序

...nt取完 n1 = TXT1.count(current[m]) n2 = TXT2.count(current[m]) if n1 + n1 > 1 or current[m] == start:#ll所连支路>1 or ll为首端节点 for mm in range(len(TXT1)): if current[m] == TXT1[mm]:#TXT1[mm]为支路另一端节点 mm为支路编号 if tpf.count(mm) == 0:#此支路...

单片机电子表

...置函数 TH0 = (65536-2000)/256;   //TH0重置函数 cp++; if(cp>=250)       //0.5s { cp1++; cp = 0; flash = ~flash;        //0.5s  - 闪烁 if(cp1>=2)    //1s { if(mode==0)    //调整时,...

微信捐赠

微信扫一扫体验

立即
上传
返回
顶部