哪位高手帮我写一下89c51单片机程序,明天就要交作业了!急啊!
哪位高手帮我写一下89c51单片机程序,明天就要交作业了!急啊!
日期:2012-12-28 12:10:13 人气:1
#include
#define uchar unsigned char
uchar times;
sfr LED=P1;
void t0isr() interrupt 1
{
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
times++;
if(times==10)
{
times=0;
LED=~LED;
}
}
main()
{
TMOD=0