内容简介:int i = 8; //循环次数为8 void main(){ P1 = 0xff; //初始化LED,8个LED全灭,(假设低电平点亮)init_t0() ;while(1); //循环等待定时中断 } void init_t0() //定时器0初始化程序 { TMOD = 0x0 答:include u8 temp;main(){ temp=0x01;while(1){ P1=temp...
用户评论
havenhome