#include "HT66F50.h"
void main()
{
unsigned char i,dat;
_scomen =0;
_tmpc0 = 0; //disable TP pin
_tmpc1 = 0;
_cp1c=0x08;
_pcc = 0; //output
while(1)
{
dat=0xfe;
for(i=0;i<8;i++)
{
_pc=dat;
_delay(50000);
_delay(50000);
_delay(50000);
dat=~(~dat<<1);
}
}
}
|