I am getting confused using serin, but pleased I'm making progress with something new to me. From the basic commands it says "All processing stops until the new serial data byte is received" which I assume means that nothing happens (blocking?) until the new data is received, and a 0 doesn't count ?
When I view using sertxd the program only runs when a 1 is received from the tx which confirms that?
I was hoping to run the program continuously as I want to switch c.2 high by using another input although it is not receiving anything from the tx
Peter
When I view using sertxd the program only runs when a 1 is received from the tx which confirms that?
I was hoping to run the program continuously as I want to switch c.2 high by using another input although it is not receiving anything from the tx
Peter
Code:
'RX below for high output on C.2 when b0 = 1 from RX (or pinc.3 high for setting??) WORKING 11-5-18
;
do
serin c.4, T2400, ("PETER:"), b0 'Qualifier PETER added upper case important
if b0 >= 1 then high C.2 'Checking b0 number, LED on and relay switched by C.2
pause 300 low C.2
endif
sertxd("The value of b0 is ",#b0,13,10)
loop