Debug Support
ARM DDI0145B
Copyright © 1998, 1999 ARM Limited. All rights reserved.
5-49
If, from the debugger’s point of view, R=0, the comms data read register
is free and new data may be placed there through the scan chain.
If R=1, this denotes that data previously placed there through the scan
chain has not been collected by the processor, and so the debugger must
wait.
From the debugger’s point of view, the registers are accessed via the scan chain in the
usual way. From the processor, these registers are accessed via coprocessor register
transfer instructions. The following instructions should be used:
MRC p14, 0, Rd, C0, C0
Returns the debug comms control register into Rd.
MCR p14, 0, Rn, C1, C0
Writes the value in Rn to the comms data write register.
MRC p14, 0, Rd, C1, C0
Returns the debug data read register into Rd.
Note
The Thumb instruction set does not support coprocessors so the ARM9TDMI must be
operated in ARM state in order to access the debug comms channel.
5.16.2
Communications via the comms channel
There are two methods of communicating via the comms channel, transmitting and
receiving. The following descriptions detail their usage.
Sending a message to the debugger
When the processor wishes to send a message to the debugger, it must check the comms
data write register is free for use by finding out whether the W bit of the debug comms
control register is clear.
It reads the debug comms control register to check status of the W bit.
•
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.
•
If W bit is clear, the comms data write register is clear.
Summary of Contents for ARM9TDMI
Page 6: ...Contents vi Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Page 12: ...Preface xii Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Page 16: ...Introduction 1 4 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Page 22: ...Programmer s Model 2 6 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Page 110: ...Test Issues 6 6 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Page 154: ...Index Index 4 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...