在线时间4 小时
UID2026251
注册时间2013-7-18
NXP金币0
该用户从未签到
注册会员

- 积分
- 57
- 最后登录
- 1970-1-1
|
发表于 2015-11-26 16:40:42
|
显示全部楼层
你好,这里确实有点问题。
关于Program Ram Array和MAD 请参考下面的描述和给出的示例步骤:
Patterns are written to the RAM array by setting MxMR[OP] = 01 and accessing the UPM with any write
transaction that hits the relevant chip select. The entire array is thus programmed by an alternating series
of writes: to MDR (RAM word to be written) each time followed by a read from MDR and then followed
by a (dummy) write transaction to the relevant UPM assigned bank. A read from MDR is required to
ensure that the MDR update has occurred prior to the (dummy) write transaction.
RAM array contents may also be read for debug purposes, for example, by alternating dummy read
transactions, each time followed by reads of MDR (when MxMR[OP] = 10).
UPM Programming Example (Two Sequential Writes to the RAM Array)
The following example further illustrates the steps required to perform two writes to the RAM array at
non-sequential addresses assuming that the relevant BRn and ORn registers have been previously setup.
1. Program MxMR for the first write (with desired RAM array address).
2. Write pattern/data to MDR to ensure that the MxMR has already been updated with the desired
configuration.
3. Read MDR to ensure that the MDR has already been updated with the desired pattern. (Or, read
MxMR if step 2 is not performed.)
4. Preform a dummy write transaction. (Write transaction can now be performed.)
5. Read/check MxMR[MAD]. If incremented, then the previous dummy write transaction is
completed; proceed to step 6. Repeat step 5 until incremented.
6. Program MxMR for the second write with the desired RAM array address.
7. Write pattern/data to MDR to ensure that the MxMR has already been updated with the desired
configuration.
8. Read MDR to ensure that the MDR has already been updated with the desired pattern.
9. Perform a dummy write transaction.(Write transaction can now be performed.)
10. Read/check MxMR[MAD]. If incremented, then the previous dummy write transaction is
completed.
Note that if step 1 (or 6) and 2 (or 7) are reversed, then step 3 (or 8) is replaced by the following:
• Read MxMR to ensure that the MxMR has already been updated with the desired configuration.
UPM Programming Example (Two Sequential Reads from the RAM Array)
RAM array contents may also be read for debug purposes, for example, by alternating dummy read
transactions, each time followed by reads of MDR (when MxMR[OP] = 0b10). The following example
further illustrates the steps required to perform two reads from the RAM array at non-sequential addresses
assuming that the relevant BRn and ORn registers have been previously setup.
1. Program MxMR for the first read with the desired RAM array address.
2. Read MxMR to ensure that the MxMR has already been updated with the desired configuration,
such as RAM array address.
3. Perform a dummy read transaction.(Read transaction can now be performed.)
4. Read/check MxMR[MAD]. If incremented, then the previous dummy read transaction is
completed; proceed to step 5. Repeat step 4 until incremented.
5. Read MDR.
6. Program MxMR for the second read with the desired RAM array address.
7. Read MxMR to ensure that the MxMR has already been updated with the desired configuration,
such as RAM array address.
8. Perform a dummy read transaction.(Read transaction can now be performed.)
Local Bus Controller
MPC8548E PowerQUICC III Integrated Processor Family Reference Manual, Rev. 2
Freescale Semiconductor 13-63
9. Read/check MxMR[MAD]. If incremented, then the previous dummy read transaction is
completed; proceed to step 10. Repeat step 9 until incremented.
10. Read MDR. |
|