You are on page 1of 1

program motoras;

{ Declarations section }
begin
DDRC:=$FF;
DDRB.1:=1;
DDRD.4:=1;
WHILE 1=1 DO BEGIN
PORTB.1:=1;
PORTD.4:=0;
PORTC:=$40;
DELAY_MS(50);
PORTB.1:=0;
PORTD.4:=0;
PORTC:=0;
DELAY_MS (500);
PORTB.1:=0;
PORTD.4:=1;
PORTC:=$02;
DELAY_MS(50);
PORTB.1:=0;
PORTD.4:=0;
PORTC:=0;
DELAY_MS (500);
{PORTC.0:=0;
PORTC.1:=0;
PORTC.2:=1;
DELAY_MS(1000);
PORTC.0:=0;
PORTC.1:=0;
PORTC.2:=0;
DELAY_MS(2000);
PORTC.0:=0;
PORTC.1:=0;
PORTC.2:=0;
PORTC.3:=1;
DELAY_MS(1000);
PORTC.0:=0;
PORTC.1:=0;
PORTC.2:=0;
DELAY_MS(2000);
}
END;
end.

You might also like