DEVICE pic12F675, intrc_osc_noclkout, wdt_off, pwrt_on, mclr_off, bod_off, protect_off
INCLUDE "modedefs.bas"
define OSC 4
define OSCCAL_1K 1
botonA var gpio.1
botonB var gpio.2
botonC var gpio.4
transmitir:
if botonA=0 then envio1
if botonB=0 then envio2
if botonC=0 then envio3
goto transmitir
envio1:
serout gpio.5,N2400,["A"]
pause 500
goto transmitir
envio2:
serout gpio.5,N2400,["B"]
pause 500
goto transmitir
envio3:
serout gpio.5,N2400,["C"]
pause 500
goto transmitir
end