5.5.4 Hardware Setup
Preliminaries
- Use USB communication between the PC and MPLAB ICE 4. Other communication types do not support trace.
- Find devices that support Native, SPI or I/O Port trace – see Help>Release Notes> Debug Features Support>Hardware Tool Debug Features by Device.
- Design the target board to have a
connector for emulator-target communication if using the PIC MCUs - ICSP Adapter Board.
Alternately design the target board to connect to the high-speed 40-pin ribbon
cable with pins for both debug and trace (see Target Connection Pinout).Note: If using I/O Port trace, you will need to use the high-speed 40-pin ribbon cable for communications and access to port pins.
- When using SPI trace, pins 7 (DAT) and 8 (CLK) are used. Therefore, you cannot use the other functions multiplexed on these pins. When using I/O Port trace, the port used for trace must not be multiplexed with the currently-used PGC and PGD pins.
Set Up Hardware
To use the PIC Instrumentation Trace feature with your own board do the following:
- The target board should be unpowered.
- Install communication cable between the emulator or adapter board and the communication connector on your target board.
- Power the target.