
342 Embedded systems design
completed between samples may no longer be true. If this dead-
line is not made, then a sample may be lost. One solution to this —
there are others such as using a priority system as supplied by a
real-time operating system — is to use a small buffer to temporar-
ily store the data so that it is not lost. By doing this the time
constraints on the processing software are reduced and are more
tolerant of other events. This is, however, at the expense of a
slightly increased latency.
Memory size
One of the concerns with buffers is the memory space that
they can take. With a large system this is not necessarily a problem
but with ...