Escolar Documentos
Profissional Documentos
Cultura Documentos
Programar
PB,PC,PD
Decoficacion
PD
C0
PD
Programar Conexin
Serie
Transmisor
PBDato
ingresado
Pc.6PB
Pc.7Pc.6
Receptor
PDPc.7
Decodificacin
Codificacin:
F9
PD
PD
PD
PD
PD
PD
A4
B0
99
92
83
F8
TRANSMISOR
RECEPTOR
INCLUDE "modedefs.bas"
INCLUDE "modedefs.bas"
DATO_RECIBIDO var byte
PD VAR PORTD
TRISD=0
TRISC=$FF
INICIO:
serin portc.7,N2400,DATO_RECIBIDO
if DATO_RECIBIDO ="0" then
PD= $FF
endif
if DATO_RECIBIDO ="1" then
PD=$F9
endif
if DATO_RECIBIDO ="2" then
PD=$A4
endif
if DATO_RECIBIDO = "3" then
PD=$B0
endif
if DATO_RECIBIDO = "4" then
PD=$99
endif
if DATO_RECIBIDO = "5" then
PD=$92
endif
if DATO_RECIBIDO = "6" then
PD=$83
endif
if DATO_RECIBIDO = "7" then
PD=$F8
endif
if DATO_RECIBIDO = "8" then
PD=$80
endif
goto inicio
end
Simulacin