??? 02/08/06 17:09 Read: times |
#109534 - Send/receive buffers Responding to: ???'s previous message |
Billy Fairhurst said:
I´ve been seeing some Keil examples and I can´t get the concept of serial input & output buffers. These examples aren´t fully documented... The concept for a receive buffer is to hold bytes that you have received. You are likely to receive a number of bytes in rapid succession which you cannot process all at once; by using a receive buffer you have a temporary holding place for your data before processing it, instead of letting it sit in SBUF where it would get overwritten. For a send buffer, the idea is that you might prepare a bunch of bytes to send, but due to speed limitations of the serial interface or the device at the other end, you cannot send them immediately. Since you can only put one byte in SBUF at a time for transmission, using an output buffer helps you organize your outbound data into a nice transmission queue which may be sent as conditions permit. I´ll apreciate any kind of info about this topic. I actually just wrote extensively about buffering and flow control here: http://www.8052.com/forum/read.phtml?id=109529 In my proyect I want to read the serial (GPS NMEA input) and store it in EEPROM of the AT89S8252, for later Tx through a GSM modem.
I´ll also apreciate any other info about writing & reading EEPROM. Thanks! Just out of curiosity, is EEPROM really the appropriate medium for what you want to do? --Sasha Jevtic |
Topic | Author | Date |
serial buffers | 01/01/70 00:00 | |
Some explanation here | 01/01/70 00:00 | |
buffers | 01/01/70 00:00 | |
Send/receive buffers | 01/01/70 00:00 | |
Aside: EEPROM![]() | 01/01/70 00:00 |