#include <kc_sfrs.h>
#include <kc_funcs.h>
#pragma interrupt(softimer=0x200A)
void softimer()
{
ioport2^=0x20;
}
void main()
{
ioc1=0x20;
ioc1=0x20;
hso_command =0x18;
hso_time =timer1+250;
int_mask = 0x20; // 打开软件定时器中断允许位
int_pend=0;
ioport2 =0x20;
enable(); //打开总中断允许位
while(1);
}