ARM ARM7TDMI User Manual Page 126

  • Download
  • Add to my manuals
  • Print
  • Page
    / 242
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 125
Debugging Your System
5-22 Copyright © 2001 ARM Limited. All rights reserved. ARM DDI 0234B
MRC CP14, 0, Rd, C1, C0
Returns the value from the DCC data read register into the
destination register Rd.
Note
The Thumb instruction set does not contain coprocessor instructions, so it is
recommended that these are accessed using SWI instructions when in Thumb state.
5.10.2 Communications through the DCC
Messages can be sent and received through the DCC.
Sending a message to the debugger
When the processor wishes to send a message to the debugger, it must check that the
DCC data write register is free for use by finding out whether the W bit of the DCC
control register is clear.
The processor reads the DCC control register to check the status of the W bit:
If W bit is clear, the DCC data write register is clear.
If the W bit is set, previously written data has not been read by the debugger. The
processor must continue to poll the control register until the W bit is clear.
When the W bit is clear, a message is written by a register transfer to coprocessor 14.
As the data transfer occurs from the processor to the DCC data write register, the W bit
is set in the DCC control register.
The debugger sees both the R and W bits when it polls the DCC control register through
the JTAG interface. When the debugger sees that the W bit is set, it can read the comms
data write register and scan the data out. The action of reading this data register clears
the debug comms control register W bit. At this point the communications process can
begin again.
Receiving a message from the debugger
Transferring a message from the debugger to the processor is similar to sending a
message to the debugger. In this case, the debugger polls the R bit of the debug comms
control register:
If the R bit is LOW, the comms data read register is free, and data can be placed
there for the processor to read.
Page view 125
1 2 ... 121 122 123 124 125 126 127 128 129 130 131 ... 241 242

Comments to this Manuals

No comments