=1 ;/ / підключаємо землю GNDA (); () ;/ / K17=1 ;/ / підключаємо джерело струму до + St=1 ;/ / підключаємо + St до лінії L1
delay_ms (5);
}
/ / ----------------------------------------- setRange5V (char N)
{(N)
{1:=1;=0;=0;; 2:=1;=0;=0;;
}
}
/ / ----------------------------------------- setK16 ()
{|=0b00000001;
} clrK16 ()
{&=0b11111110;
}
/ / ----------------------------------------- setK17 ()
{|=0b00000010;
} clrK17 ()
{&=0b11111101;
}
/ / ----------------------------------------- setK21 ()
{|=0b00000010;
} clrK21 ()
{&=0b11111101;
}
/ / ----------------------------------------- setK22 ()
{|=0b00000001;
} clrK22 ()
{&=0b11111110;
}
/ / ----------------------------------------- start_timer0 ()
{_t0=0;=0x07;
}
/ / ----------------------------------------- stop_timer0 ()
{= 0x00; _t0=0;
}
/ / ----------------------------------------- meandr ()
{char flag=0; + +; (flag & 0b00000001)
{();
/ / flag=0;
}
{();
/ / flag=1;
}
}
/ / -----------------------------------------
/ / ----------------------------------------- init_mc ()
{
/ / --------------------------------------------------------
/ / Input / Output Ports initialization
/ / Port A initialization=0x00;=0xFF;
/ / --------------------------------------------------------
/ / Port B initialization=0b00000000;=0b10111101;
/ / --------------------------------------------------------
/ / Port C initialization=0b00000000;=0xFF;
/ / --------------------------------------------------------
/ / Port D initialization=0b00000000;=0b11110011;
/ / --------------------------------------------------------
/ / Port E initialization=0b00000000;=0b11111100;
/ / --------------------------------------------------------
/ / Port F initialization=0x00;=0xFF;
/ / --------------------------------------------------------
/ / Port G initialization=0b00000000;=0b00011111;
/ / --------------------------------------------------------