Nexus
MPC5565 Microcontroller Reference Manual, Rev. 1.0
24-56
Freescale Semiconductor
24.11.12.3 BTM Operation
24.11.12.3.1 Enabling Program Trace
Both types of branch trace messaging can be enabled in one of two ways:
•
Setting the TM field of the DC1 register to enable program trace (DC1[TM])
•
Using the PTS field of the WT register to enable program trace on watchpoint hits (e200z6
watchpoints are configured within the CPU)
24.11.12.3.2 Relative Addressing
The relative address feature is compliant with the IEEE
®
-ISTO 5001-2003 standard recommendations,
and is designed to reduce the number of bits transmitted for addresses of indirect branch messages.
The address transmitted is relative to the target address of the instruction which triggered the previous
indirect branch (or sync) message. It is generated by XOR’ing the new address with the previous address,
and then using only the results up to the most significant 1 in the result. To recreate this address, an XOR
of the (most-significant 0-padded) message address with the previously decoded address gives the current
address.
Previous address (A1) =0x0003FC01, New address (A2) = 0x0003F365
Figure 24-38. Relative Address Generation and Re-creation
Collision Priority
All messages have the following priority: WPM -> OTM -> BTM -> DTM. A
BTM message which attempts to enter the queue at the same time as a
watchpoint message or ownership trace message will be lost. An error
message will be sent indicating the BTM was lost. The following
direct/indirect branch will queue a direct/indirect branch with sync. message.
The count value within this message will reflect the number of sequential
instructions executed after the last successful BTM Message was generated.
This count will include the branch which did not generate a message due to
the collision.
Table 24-36. Program Trace Exception Summary (continued)
Exception Condition
Exception Handling
Message Generation:
A1 = 0000 0000 0000 0011 1111 1100 0000 0001
A2 = 0000 0000 0000 0011 1111 0011 0110 0101
A1 A2 = 0000 0000 0000 0000 0000 1111 0110 0100
Address Message (M1) = 1111 0110 0100
Address Re-creation:
A1 M1 = A2
A1 = 0000 0000 0000 0011 1111 1100 0000 0001
M1 = 0000 0000 0000 0000 0000 1111 0110 0100
A2 = 0000 0000 0000 0011 1111 0011 0110 0101
Summary of Contents for MPC5565
Page 18: ...MPC5565 Microcontroller Reference Manual Devices Supported MPC5565 MPC5565 RM Rev 1 0 09 2007...
Page 34: ...MPC5565 Reference Manual Rev 1 0 Freescale Semiconductor 15...
Page 35: ...MPC5565 Reference Manual Rev 1 0 16 Freescale Semiconductor...
Page 553: ...Flash Memory MPC5565 Microcontroller Reference Manual Rev 1 0 13 38 Freescale Semiconductor...
Page 559: ...SRAM MPC5565 Microcontroller Reference Manual Rev 1 0 14 6 Freescale Semiconductor...
Page 973: ...Preface MPC5565 Microcontroller Reference Manual Rev 1 0 21 36 Freescale Semiconductor...
Page 1153: ...Calibration MPC5565 Microcontroller Reference Manual Rev 1 0 B 8 Freescale Semiconductor...