-
-
...t;
#define JINGZHEN 24
#define TIME0TH ((65536-50*JINGZHEN/12)&0xff00)>>8 // 50us
#define TIME0TL ((65536-50*JINGZHEN/12)&0xff)
#define TIME1TH ((65536-3000*JINGZHEN/12)&0xff00)>>8
#define TIME1TL ((65536-3000*JINGZHEN/12)&0xff)
sbit CodingsWitch_...
-
-
...用中断对数码管上显示的数据进行刷新
{
TH0 = (65536 - 2000) / 256; //TH0重置函数
TL0 = (65536 - 2000) % 256; //TL0重置函数
cp1++;
if(cp1 >= 250) //0.5秒
{
cp1 = 0;
flash = ~flash; //产生...
-
-
...换成数值
console.log(Number("Hello World")+","+Number("")+","+Number("000011")+","+Number(true)+","+Number(false));//NaN,0,11,1,0
console.log(parseInt("1234blue")+","+parseInt("")+","+parseInt("0xA")+","+parseInt(22.5)+","+parseInt("070")+","+parseInt("0xf"));//1234,NaN,10,22,70,15
//String
...
-
-
...nbsp;else
{
flag1=1;
TL0=0;
TH0=0x00;
p=20-(dengji>>1);
}
}
/*开始确认暂停键的判断*/
void zhongduan1() interrupt 2 using 2
{
if(!flag5)
{
flag5=1;
}
&nb...
-
-
...码。 为了控制井字游戏,FSM控制器的设计如下。1. IDLE(00):在等待播放器/计算机播放或重置电路时,FSM处于IDLE状态。2. PLAYER(01):播放器转向播放,并将“ 01”存储到解码位置。3. COMPUTER(10):计算机开始播放,“ 01”存...
-
-
...一种opencv调用方式%图像尺寸默认是480x640,录制后截取为400x480,要调节 %% 初始化close allclear alldoPhoto=false; %是否录制图片cnt=0; %计数器初始化j=0; &nbs...
-
-
...nbsp; <p style="color:#F00; padding-top:20px;" align="center">
<?php echo $_SESSION['action1'];?><?php echo $_SESSION['ac...
-
-
...
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'>
<link rel="shortcut icon" href="assets/images/favicon.ico">
</head>
<body class="cnt-home">
<header class="hea...
-
-
...输出到喇叭的信号
}
}
void delay_10ms(void)
{
uint i = 1000;
while(i--);
}
//////////////定时中断服务函数//////////////////////////////////////
void timer0() interrupt 1
{
uint i;
TH0=(65536-50000)/256; //对TH0 TL0赋值50MS定时
&n...
-
-
...nbsp; ALU_ADD <= "000000000";
case(ALU_Sel) is
when "000" => -- ADD
&n...