FIFO電路(first in,first out),內部藏有16bit×16word的Dual port RAM,依次讀出已經寫入的數據。因為不存在Address輸入,所以請自行設計內藏的讀寫指針。由FIFO電路輸出的EF信號(表示RAM內部的數據為空)和FF信號(表示RAM內部的數據為滿)來表示RAM內部的狀態,并且控制FIFO的輸入信號WEN(寫使能)和REN(讀使能)。以及為了更好得控制FIFO電路,AEF(表示RAM內部的數據即將空)信號也同時輸出。
μC/OS-II Goals
Probably the most important goal of μC/OS-II was to make it backward compatible with μC/OS (at least from an
application’s standpoint). A μC/OS port might need to be modified to work with μC/OS-II but at least, the application
code should require only minor changes (if any). Also, because μC/OS-II is based on the same core as μC/OS, it is just
as reliable. I added conditional compilation to allow you to further reduce the amount of RAM (i.e. data space) needed
by μC/OS-II. This is especially useful when you have resource limited products. I also added the feature described in
the previous section and cleaned up the code.
Where the book is concerned, I wanted to clarify some of the concepts described in the first edition and provide
additional explanations about how μC/OS-II works. I had numerous requests about doing a chapter on how to port
μC/OS and thus, such a chapter has been included in this book for μC/OS-II.
NAME Control_AT24Cxx
This collection of routines allows an AT89C2051 microcontroller to read
and write the AT24Cxx family of serial CMOS EEPROMS. This version of the
code is compatible only with the AT89C2051 due to the location of the
data buffer and stack in RAM. The code may be modified to work with the
AT89C1051 by relocating or resizing the buffer and stack to fit into the
smaller amount of RAM available in the AT89C1051. Note that the minimum
size of the buffer is determined by the page size of the AT24Cxx.