Yes, could well be.Maybe Bruce set this up to test how reliable the connection is? If it can do two before the interrupt time out then the connection is solid.
Well I've learnt a lot from going through the TX / RX program code.
There were a lot of new terms which I hadn't come across (very clever in what they did / do though) which all adds to the knowledge base.
So to summarise:
The TX is an Interrupt_On_Change program which sleeps to save power until a button press is received.
The RX is a Timer(65ms) Interrupt_loop, which resets if no Data_In is received within the time period.
Just to be clear in my own mind here, there are two ways to reset the RX Interrupt Timer. One in Main:
Which does it when Data is received (TMR1L/H will have a value of less that 65536 before reset).Code:T1CON.0 = 0 ' Stop Timer1 once we've received data TMR1L = 0 ' Clear low byte TMR1H = 0 ' Clear high byte
The other in the Interrupt_Handler 'RESET_VT' which the program would jump to on a Time_Out.
If the above is accurate and makes sense, then in the time honoured tradition:
What's next?
Dave





Bookmarks