IO Port Trace Connections

To use IO Port trace, you will need to use the 40-pin cable to connect to the target and NOT the PIC MCUs - ICSP Adapter Board. Parallel trace is possible using selected pins of the high-speed cable as an IO Port.

For this trace configuration, seven (7) lines of data and one (1) line for clock are transmitted. PORTx must be a port with 8 pins that has all 8 pins available for trace. The port does not have to be one physical port but can be made up of pins from more than one port. The port pins must not be multiplexed with the currently-used PGC and PGD pins.

For allowable PORTx configurations:

  1. 1.Right click on your project in the Projects window and select “Properties”.
  2. 2.In the Project Properties window, click on the “ICE4” category
  3. 3.Select the “Trace and Profiling” option category from the drop down list.
  4. 4.Under “Data Collection Selection”, select the trace that is supported for your device, e.g., “User Instrumented Trace”.
  5. 5.Under “Communications Medium”, select “I/O Port”.
  6. 6.Under “I/O Port Selection”, select your port configuration from the list.

A basic configuration is shown in the following table.

Note: External triggers uses the same target pins.
Target Connector Pin Pin Name Content
8 PORT71 Clock
7 PORT6 Data
9 PORT5 Data
10 PORT4 Data
13 PORT3 Data
15 PORT2 Data
17 PORT1 Data
19 PORT0 Data
  1. 1.Use a 10 kW pull-down resistor for noise reduction

As in Circuits That Will Prevent the Emulator From Functioning, do not use pull-up or pull-down resistors, capacitors or diodes on port pins, except as specified.

For more on this type of trace, see I/O Port Trace.