Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/12/09 09:24
Read: times


 
#161441 - Thanks but ----> how do I stream on the I2C
Responding to: ???'s previous message
Yes I have a very nice ring driven UART function that can collect the bytes, the issue I have is getting these on the I2C bus in an orderly manner, it seems wasteful sending them one byte at a time having to have the overhead of addressing the slave etc.

I use the I2C bus for other things as well so would like to keep it reasonably free, and send a medium length (16bytes-ish) packet.

On further thought, how does this sound.

buffer the data into 2 rings, (a & b) when A ring is full switch to B ring, and send A ring, and then wait until B ring is full and send that and contiously toggle between the 2 rings.

At the other end reverse the process, as it is received off the I2C bus. dependant on the size of the buffers and the amount of data this would allow a small variation in the bit rate of the UART as well, esp so if the slave UART was running faster than the master UART. and on the condition that whatever the serial protocol was could handle breaks in the data (Modbus would be no good)

List of 8 messages in thread
TopicAuthorDate
Streaming Data RS232 -> I2C -> RS232            01/01/70 00:00      
   to infinity and beyond            01/01/70 00:00      
      Waaaaaaaaay OTT?            01/01/70 00:00      
   Ring-a-ring-O-roses...            01/01/70 00:00      
      Thanks but ----> how do I stream on the I2C            01/01/70 00:00      
         Ring or no Ring            01/01/70 00:00      
   great idea            01/01/70 00:00      
      Wouldn't need to send to the other UART though            01/01/70 00:00      

Back to Subject List