-
-
...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<...
-
-
...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...
-
-
...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)...
-
-
... 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) //秒调整 +
{
 ...
-
-
...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) //调整时,...