I need a litte help with picbasic.
For the life of me I can not figure out break out of the first delay in my code until it has finished.
Can someone take a look at my code and give me some suggestions?
Thanks ahead.
Steve
DEVICE 12F629
CONFIG INTRC_OSC_NOCLKOUT,WDT_OFF,MCLRE_OFF,CP_OFF,BODEN_ON
XTAL 4
ALL_DIGITAL = TRUE
TRISIO = %00001000
SYMBOL PIR = GPIO.3
SYMBOL BUZ = GPIO.2
CHECKIT:
WHILE PIR <> 0
DELAYMS 60000
BUZ = 1
DELAYMS 500
BUZ = 0
WEND
DELAYMS 3000
BUZ = 1
DELAYMS 1000
BUZ = 0
DELAYMS 3000
GOTO CHECKIT
END
For the life of me I can not figure out break out of the first delay in my code until it has finished.
Can someone take a look at my code and give me some suggestions?
Thanks ahead.
Steve
DEVICE 12F629
CONFIG INTRC_OSC_NOCLKOUT,WDT_OFF,MCLRE_OFF,CP_OFF,BODEN_ON
XTAL 4
ALL_DIGITAL = TRUE
TRISIO = %00001000
SYMBOL PIR = GPIO.3
SYMBOL BUZ = GPIO.2
CHECKIT:
WHILE PIR <> 0
DELAYMS 60000
BUZ = 1
DELAYMS 500
BUZ = 0
WEND
DELAYMS 3000
BUZ = 1
DELAYMS 1000
BUZ = 0
DELAYMS 3000
GOTO CHECKIT
END