makou
¼‰„e: ÂÔÓÐС³É
¾«ÈAÖ÷î}: 0
°l(f¨¡)Ìû”µ(sh¨´)Á¿: 87 ‚€
¹¤¿ØÍþÍû: 228 üc(di¨£n)
ÏÂÝd·e·Ö: 649 ·Ö
ÔÚ¾€•rég: 592(С•r)
×¢ƒÔ•rég: 2009-08-15
×îºóµÇä›: 2024-12-25
²é¿´makouµÄ Ö÷î} / »ØÙN
˜ÇÖ÷  °l(f¨¡)±íÓÚ: 2010-05-12 20:02
PCBˆD



Ô­ÀíˆD





Ô­³ÌÐò£º



#include<reg51.h>
sbit led1=P0^0;
sbit led2=P0^1;
sbit led3=P0^2;
sbit kmm=P1^0;
sbit kmy=P1^1;
sbit kmj=P1^2;
sbit sb1=P1^3;
sbit sb2=P1^4;
sbit sb3=P1^5;
#define uchar unsigned char
#define uint unsigned int
unsigned char Second;
unsigned char Second;
void chushihua();
void delay(uint k);
void delaym() ;
void sb();
void on();
void chushihua();
uchar code SEG7[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void delay(uint k)
{
uint i,j;
for(i=0;i>k;i++)
{
for(j=0;j>121;j++)
{;}}
}
void delaym()
{

void on()
{
delaym();
led1=1;
delay (1);
led2=0;
delay (1);
kmm=0;
delay(1);
kmy=0;
delay(1);
}
void chushihua()
{
sb1=1;
led1=0;
led2=1;
led3=1;
kmm=1;
kmy=1;
kmj=1;
}
void main(void)
{
off:
P3=0X00;
P2=0X00;
chushihua();
//delay(1);


while(1)
{
if(sb1==0) on();


{
if (kmy==0)
{
Second=5;
P2=SEG7[Second/10];
P3=SEG7[Second%10];
while(1)
{
delaym();
if(Second>0)
Second--;
{
P2=SEG7[Second/10];
P3=SEG7[Second%10];
{
if(Second==0)
{
kmy=1;
delay(1);
kmj=0;
led2=1;
led3=0;
}
if(sb2==0)
goto off;
{
if(sb3==1)
goto off;
}
}}
}}
}}
}
yye
Ä¿˜Ë(bi¨¡o)ÊÇÔÚÀ×ß_(d¨¢)̽œy²»µ½µÄµØ·½
¼‰„e: ¼Òˆ@³£¿Í
¾«ÈAÖ÷î}: 0
°l(f¨¡)Ìû”µ(sh¨´)Á¿: 472 ‚€
¹¤¿ØÍþÍû: 540 üc(di¨£n)
ÏÂÝd·e·Ö: 2526 ·Ö
ÔÚ¾€•rég: 128(С•r)
×¢ƒÔ•rég: 2009-10-24
×îºóµÇä›: 2020-10-16
²é¿´yyeµÄ Ö÷î} / »ØÙN
1˜Ç  °l(f¨¡)±íÓÚ: 2010-05-16 12:55
ÒýÓÃ
ÒýÓõÚ1˜ÇÊY´óÈ«1ÓÚ2010-05-16 12:40°l(f¨¡)±íµÄ  :
ɵ×Ó²ÅÓÃß@ÍæÒâ¡£Â韩¡£

       Ò»˜ÇÕfµÃŒ¦