#include<lpc21xx.h>
int main()
{
IO1DIR=0XFFFFFFFF;
T0TCR=1;
T0MCR=0x019;
T0TC=0X00000000;
T0MR0=0X000F0000;
T0MR1=0X00FF0000;
while(1)
{
T0IR=0XFF;
while((T0IR&0X01)==0);
IO1SET=0XFFFFFFFF;
while((T0IR&0X02)==0);
IO1CLR=0XFFFFFFFF;
}
}
No comments:
Post a Comment