Está en la página 1de 1

LAB.

DE MICROPROCESADORES I

LENGUAJE MIKROPASCAL

if Dato=Dato1 then

----------------------------------------------------------------------------------------------------------while Tecla=0 do
begin

begin
Dato:=(Dato1)/2;
End {no tiene " ; " antes del else}

Tecla := Keypad_Key_Click();

else begin
Dato:=Dato*2;
end;

end;

------------------------------------------------------------------------------------------------------------Case tecla of
1 : Begin
Dato:=InputDato ;
Dato:=Dato/2;
End;
2 : Begin
Dato:=InputDato ;
Dato:=Dato/2;

--------------------------------------------------------------ANGHEL() BARRAZ
----------------------------------------------repeat
begin
CONT := CONT1 + CONT2;
CONT1:= CONT;
CONT2:= CONT;
RESULT := CONT/2;
PORTB := RESULT;
Delay_ms(1000);

End;

end;
until (Tecla='=');

3 : Begin
Dato:=InputDato ;
Dato:=Dato/2;
End;

-------------------------------------------------------------------------------------------------------------

4 : Begin
Dato:=InputDato ;
Dato:=Dato/2;
End

label bucle;

{no tiene " ; " antes del else}

bucle:
.
.
.
.
goto bucle

else
begin
Dato:=InputDato ;
Dato:=Dato/2;
end;
End; {End Case1}
-------------------------------------------------------------------ANGHEL() BARRAZ
-----------------------------------------for AN := 0 to 7 do
begin
CONT := CONT1 + CONT2;
CONT1:= CONT;
CONT2:= CONT;
RESULT := CONT/2;
PORTB := RESULT;
Delay_ms(1000);
END ;

ANGHEL() BARRAZ

También podría gustarte