Hi,
I know this should be dead simple, but I just cannot get it to work, and searching thru the forum has just got me further lost, so, help!
I have an 08M in effect watching for various sequence of events from different inputs, and when a certain sequence matches (this could be many minutes to occur), it puts an output high, until a particular second combination of events happens, then switches the output pin low again - the high period is always <0.6 seconds....This all works fine
Then, I have a18X sitting watching for an input pin (input 6 actually) to go high from the 08M output pin, and when it does, I want it to capture the time period the input pin is high, then display the time period on an LCD, and do other stuff. Simple! The LCD display & other stuff seems to work ok, but I cannot suss out capturing the high period!!!
I have this code...
look_for_trigger:
pulsin 6,1,w6 'when IN-6 goes high, capture time period into variable w6
if w6=0 then look_for_trigger
goto calculate
what am I missing?
I know this should be dead simple, but I just cannot get it to work, and searching thru the forum has just got me further lost, so, help!
I have an 08M in effect watching for various sequence of events from different inputs, and when a certain sequence matches (this could be many minutes to occur), it puts an output high, until a particular second combination of events happens, then switches the output pin low again - the high period is always <0.6 seconds....This all works fine
Then, I have a18X sitting watching for an input pin (input 6 actually) to go high from the 08M output pin, and when it does, I want it to capture the time period the input pin is high, then display the time period on an LCD, and do other stuff. Simple! The LCD display & other stuff seems to work ok, but I cannot suss out capturing the high period!!!
I have this code...
look_for_trigger:
pulsin 6,1,w6 'when IN-6 goes high, capture time period into variable w6
if w6=0 then look_for_trigger
goto calculate
what am I missing?