Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
learn:courses:unit-3:start [2018/01/11 19:46] – James Colvin | learn:courses:unit-3:start [2019/10/28 17:37] – [Listing 7.2. PMP Initialization Code for LCD Interface] Arthur Brown | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Unit 3: Parallel I/O and Handshaking for LCD Control ====== | ====== Unit 3: Parallel I/O and Handshaking for LCD Control ====== | ||
- | [[{}/learn/courses/unit-2/start|Back to Unit 2]] | + | [[:learn:courses:unit-2:start|Back to Unit 2]] |
=== Unit 3 Labs === | === Unit 3 Labs === | ||
* [[https:// | * [[https:// | ||
Line 308: | Line 308: | ||
//Figure 7.17. The PMP timing diagram for the beginning, middle, and end wait periods.// | //Figure 7.17. The PMP timing diagram for the beginning, middle, and end wait periods.// | ||
- | The minimum settings for the three PMP WAIT intervals can be determined by dividing the value for t< | + | The minimum settings for the three PMP WAIT intervals can be determined by dividing the value for t< |
+ | |||
+ | < | ||
+ | (1) $[B+(M+1)+E] * T_PB$ | ||
+ | |||
+ | (2) $[B+(M+1)+E] * T_PB = (5) * 100 ns = 500 ns$ | ||
+ | < | ||
Since the PMP is clocked from the peripheral bus clock, it is likely that the PMP cycle is slower than the core CPU, which means that the PMP also has a busy flag that must be polled before writing or reading the next byte. With the PMP interrupt disabled, the only way to determine if the PMP is ready for the next read or write cycle is to poll the PMP flag. The // | Since the PMP is clocked from the peripheral bus clock, it is likely that the PMP cycle is slower than the core CPU, which means that the PMP also has a busy flag that must be polled before writing or reading the next byte. With the PMP interrupt disabled, the only way to determine if the PMP is ready for the next read or write cycle is to poll the PMP flag. The // | ||
+ | |||
Line 418: | Line 425: | ||
---- | ---- | ||
- | [[{}/learn/courses/unit-2/start|Back to Unit 2]] | + | [[:learn:courses:unit-2:start|Back to Unit 2]] |
- | [[{}/learn/courses/unit-3-lab3a/start|Go to Lab 3a]] | + | [[:learn:courses:unit-3-lab3a:start|Go to Lab 3a]] |
- | [[{}/learn/courses/unit-3-lab3b/start|Go to Lab 3b]] | + | [[:learn:courses:unit-3-lab3b:start|Go to Lab 3b]] |
- | [[{}/learn/courses/unit-4-1/start|Go to Unit 4 Part 1]] | + | [[:learn:courses:unit-4-1:start|Go to Unit 4 Part 1]] |
{{tag> | {{tag> |