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.
Содержание ARM9TDMI
Страница 1: ...Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ARM9TDMI Technical Reference Manual ...
Страница 6: ...Contents vi Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 12: ...Preface xii Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 16: ...Introduction 1 4 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 22: ...Programmer s Model 2 6 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 36: ...ARM9TDMI Processor Core Memory Interface 3 14 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 54: ...ARM9TDMI Coprocessor Interface 4 18 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 110: ...Test Issues 6 6 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 138: ...ARM9TDMI AC Characteristics 8 20 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 150: ...ARM9TDMI Signal Descriptions A 12 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...
Страница 154: ...Index Index 4 Copyright 1998 1999 ARM Limited All rights reserved ARM DDI0145B ...