51学习3~~定时中断
0赞
发表于 6/19/2010 3:35:37 PM
阅读(2228)
#include<reg52.h>
#include <intrins.h> //包含有左右循环移位子函数的库
#define uint unsigned int
#define uchar unsigned char
sbit P1_0=P1^0;
uchar tt;
void main()
{
}
void timer0() interrupt 1
在中断里面改变LED就可以啦
不用在主函数
{
}
