milesguidon
Member level 2
- Joined
- Dec 4, 2010
- Messages
- 52
- Helped
- 8
- Reputation
- 16
- Reaction score
- 8
- Trophy points
- 1,288
- Location
- Los Angeles, CA
- Activity points
- 1,753
I am using a PIC24F to receive and decode a signal. I then use the UART to send a packet containing the decoded information to an XBee, where it is then received by another XBee, which connects to the UART of another PIC24F.
The problem that I'm currently having is my limited time window--my incoming data comes in 33ms "packets", and my decoding algorithm finishes (obviously) at the end of these packets, leaving me with very little time to get the UART to push data out the door, before I must decode the next packet.
I am wondering what the correct method would be here, as I have a feeling this is a common problem encountered in handling real-time data. As soon as the data packet is complete, only then do we know completely what the packet contains (obviously), but that's pretty much when another packet is incoming, and must be dealt with. In general, what are my options for processing the data? Am I limited to the small amount of time between the end of one packet and the beginning of another?
The problem that I'm currently having is my limited time window--my incoming data comes in 33ms "packets", and my decoding algorithm finishes (obviously) at the end of these packets, leaving me with very little time to get the UART to push data out the door, before I must decode the next packet.
I am wondering what the correct method would be here, as I have a feeling this is a common problem encountered in handling real-time data. As soon as the data packet is complete, only then do we know completely what the packet contains (obviously), but that's pretty much when another packet is incoming, and must be dealt with. In general, what are my options for processing the data? Am I limited to the small amount of time between the end of one packet and the beginning of another?