Ok, I must admit I never read almost anything about them, but I just would like your opinions on this...
I want to receive some data over (say the serial devivce for example) and store it somewhere. Then analyse it and depending on the result do some action or get the next unit of data to repeat the process. The analysis I want to make compares the data with the previous one.
Two main doubts:
1- At some point when the buffer gets filled it has to return to the initial address again right? So the code should expect that special case... Kinda like this: Successively fill each buffer space corresponding to the size of the data I'm receiving starting at the lowest address of the buffer. Then compare each one with the previous one as it gets filled. When reach end of buffer start filling buffer from the start address again and compare the last buffer data with the first one (the special case).
This buffer would have the advantage of when analysis of data gets more slow it would still be getting data (filling the buffer), maybe with DMA (?). When it's the data comming in that gets slow I'd already have a buffer to compensate.
If this doesnt make sense at all let me know too:-D
2- Since, just for now, for experimenting, I'm using an already existing DOS program to get the data from the serial port, and it saves it on a file, should I use the ramdisk to store the files in succession and then compare them? I guess that's the only choice anyway.
3- Ok just by curiosity, isn't that the way buffers work in general anyway?...
Thx for the patiente... 8-)