Samoele
- 26th October 2009, 17:12
Hi,
I have a simple program and make me problem. After receiving data blinking LED only one cycle and after this cycle LED is off
I would that LED is after receiving data blinking constant. Why is not stored number in variable and loop the program?
tnx
here is my program:
@ device pic10F202,wdt_off,mclr_off,protect_off
define osc 4
INCLUDE "modedefs.bas"
led var GPIO.0
out var gpio.1
serial var gpio.3
ena var gpio.2
b0 var byte
b1 var byte
main:
serin serial,T2400,[1],b0
for b1=0 to b0
high led
pause 200
low led
pause 200
next b1
pause 2000
goto main
end
I have a simple program and make me problem. After receiving data blinking LED only one cycle and after this cycle LED is off
I would that LED is after receiving data blinking constant. Why is not stored number in variable and loop the program?
tnx
here is my program:
@ device pic10F202,wdt_off,mclr_off,protect_off
define osc 4
INCLUDE "modedefs.bas"
led var GPIO.0
out var gpio.1
serial var gpio.3
ena var gpio.2
b0 var byte
b1 var byte
main:
serin serial,T2400,[1],b0
for b1=0 to b0
high led
pause 200
low led
pause 200
next b1
pause 2000
goto main
end