Read operations starts from CPU with instruction like load (ldrb). With a rising edge of hclk/pclk CPU places address to address bus and pulls down read enable line nOE. This way CPU tells it wants to read internal register of peripheral. Now address has been placed so address decoder will select chip select line of the peripheral. Peripheral has to respond to CPU with data. Here peripheral has wait line to tell the CPU to wait for 1-2 Clock cycles. CPU will wait till wait is high. If peripheral is ready to supply data then peripheral has to pull wait line down and immediately should latch the data to data lines. Now CPU will read back data lines and with pull up nOE, read enable line. This way CPU tells that we are done with read. Now peripheral has to pull up wait and data line and it has to set it to high impedance state.
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Calculate weighted average