Datasheet

Emulator User’s Guide for MPLAB X IDE
DS52085A-page 72 2013 Microchip Technology Inc.
7.3.3 Setting Up and Using Trace
PIC32 Instruction Trace requires hardware and software setup before you can trace.
7.3.3.1 HARDWARE SETUP – PIC32 MCU ON PIM
To use the PIC32 Instruction Trace feature with the PIM do the following:
1. Plug the PIM into an unpowered target board.
2. Install communication cable(s) between the emulator and your target board. See
Section 3.5 “Target Communication Connections.
3. Connect the trace cable from the trace port on the PIM to the trace adapter
board. Orient the cable as show in Figure 7-2.
FIGURE 7-2: TRACE CONNECTION WITH PIM
4. Plug the trace adapter board into the MPLAB REAL ICE in-circuit emulator logic
probe port. The top of the adapter board contains the connectors and should be
oriented upwards when plugging the board into the logic probe port (Figure 7-2).
5. Power the target.
7.3.3.2 HARDWARE SETUP – PIC32 MCU ON TARGET
When designing instruction trace capability onto your own board, the following
provisions will need to be made.
Termination series resistors will need to be added as depicted in Figure 7-5.
Depending on your board routing and loading of the signals used for trace; it is a
good idea to place 0 ohm resistors that can be unpopulated to isolate the trace
signals TRCLK and TRD3:0.
To use the PIC32 Instruction Trace feature with your own board do the following:
1. The target board should initially be unpowered.
2. Install communication cable(s) between the emulator and your target board. See
Section 3.5 “Target Communication Connections.
3. Connect the trace cable from the target board to the trace adapter board. Make
sure the PIC32 MCU on your target board is connected to accomodate trace, as
per Figure 7-5.
4. Plug the trace adapter board into the MPLAB REAL ICE in-circuit emulator logic
probe port. The top of the adapter board contains the connectors and should be
oriented upwards when plugging the board into the logic probe port (Figure 7-3).
PIC
32
Trace Cable
Trace Port
PIM
Trace
Adapter
Communication Cable(s)
ACTIVE
STATUS
RESETFUNCTION
Emulator Pod
5
Note: When using trace, pins TRCLK and TRD3:0 are used. Therefore, you
cannot use the other functions multiplexed on these pins. For
PIC32MX360F512L, multiplexed functions are RG14:12 and RA7:6. Check
your device data sheet for details.