
Originally Posted by
mackrackit
The code in the ISR still looks a bit long. Maybe put that stuff in the START label being you are looping back to it. Have a GOSUB in there to TOGGLE FAST.
In the end I think the only thing you want in the ISR is the serial receive.
I didn't knew about this. I just want to confirm again, that I can put gosub kind of statements in the ISR, where it can point to labels outside the ISR?
Which brings up another thing. If I am following this correctly the RF is two way. ZUnless you have a two way module you will want to kill the power to the transmitter when you are receiving. I do not see this in the code but maybe it is there.
I have tried to give enough pause to the TX before transmitting, so that Rx can finish listening to the code.
One more question for now, any advise as to why this stament in the code (MCroom) is not working when code received is 1:
Code:
for x=1 to 4
if code=x then
High PortC[x+3] : Y=1 : buzzer[x]=1: goto snd
endif
Port C.4 should get high when code is 1, but it is not.
Bookmarks