Hi. I am running an RF system which consists of one FM transmitter and one FM receiver. The receiver output is buffered and fed to a number of LED display boards which each have a 16f627 with a 4MHz resonator.
Each LED display board has a two byte ID which is set in the pic programme as two constants and requires two bytes of data to do it's job.
So I will send over the RF link for example:
1,1,100,200
The code line in the pic that picks (ignore the pun) this up is:
debugin 1000,main,[wait(id_byte0,id_byte1),display0,display1]
The problem is I have to wait at least 130mS before I send another set of 4 bytes, otherwise the debugin line appears to not know it has finshed and carries on with the next byte, thus corrupting the result of the data.
The RF link has a 92byte buffer so I don't think it is the RF causing the problem.
Bookmarks