void TimeIterrupt() interrupt 1
{
TH0 = 0x15;
TL0 = 0x0A;
COUNT ++;
www.youerw.com
P1_0 = ~P1_0 ; //位取反
K++;
if(K==20) //闪烁10次
{
K = 0 ;
COUNT = 10 ;
}
}
if(COUNT==20) //定时600MS
{
COUNT = 0 ;
P1_1 = ~P1_1 ; //位取反
K++;
if(K==20) //闪烁10次
{
K = 0 ;
COUNT = 20 ;
}
}
if(COUNT==30) //定时600MS
{
COUNT = 0 ;
P1_2 = ~P1_2 ; //位取反
K++;
if(K==20) //闪烁10次
{
K = 0 ;