Sei sulla pagina 1di 1

CONTADOR

trisb=0
uni var byte
deci var byte
uni=0
deci=0
inicio:
portb=deci*16+uni
pause 25
if uni=9 then
uni=0
if deci=9 then
deci=0
goto inicio

else
deci=deci+1
goto inicio
endif
else
uni=uni+1
goto inicio
endif
end

Potrebbero piacerti anche