void intit_tmr();
void setup() {
// put your setup code here, to run once:
volatile char *ddr =(char*)0x30;
*ddr = 0x01;
intit_tmr();
}
void intit_tmr(){
volatile char *controlReg=0x80;
volatile char *pre= 0x81;
*controlReg=0;
*pre=0x0c;
//*msk=0x02;
}
void rukhDoSec(){
volatile short *tmr= 0x84;
volatile short *cmp= 0x88;
*cmp=62500;
*tmr=0;
while((*cmp)!=(*tmr));
}
void loop() {
// put your main code here, to run repeatedly:
volatile char *op=(volatile char*)0x31;
(*op)^=(0x01);
rukhDoSec();
(*op)^=(0x02);
rukhDoSec();
}