#include “STC15F2K60S2.H”
#include “absacc.h”
void Delay(unsigned int t)
{
while(t–);
while(t–);
}
void LEDRunning()
{
unsigned char i;
for(i = 0; i<8; i++)
{
XBYTE[0x8000] = ~(0x01 << i);
Delay(60000);
Delay(60000);
}
XBYTE[0x8000] = 0xff;
}
void SMGRunning()
{
unsigned char i;
for(i = 0; i<8; i++)
{
XBYTE[0xc000] = 0x01 << i;
XBYTE[0xe000] = 0x00;
Delay(60000);
Delay(60000);
}
XBYTE[0xe000] = 0xff;
}
void main()
{
LEDRunning();
SMGRunning();
}