Frequently Asked Questions (FAQ)
9.3
HOW DOES TRACE WORK – 8 AND 16 BIT DEVICES
? What's in the silicon that allows it to trace with the MPLAB REAL ICE in-circuit
emulator?
Tracing over the two-wire (ICSP) interface is supported with silicon that contains
the Version 2 PIC18F and dsPIC33F/PIC24X in-circuit debugger modules.
? When using trace, is this connection electrically isolated in any way, i.e., do the
triggers have any isolation?
They are buffered and DC adjusted to whatever V DD level you are running. The
buffers tristate when off. This minimal isolation makes the system fast and opens
the door to adapt to new and faster technologies. However, you may implement
more RS-232 isolation (4-6 lines) if desired, but this may impact your speed.
? Can we do trace by using the 5 or 6 ICSP pins only?
Tracing is possible using the standard ICSP interface.
? When would SPI trace be used? What extra advantage does this have?
The SPI trace is intended to be used for devices that do not have the advanced
debug engine for tracing. These typically would be some PIC18F and all PIC16F
MCU devices.
? In order to use the SPI trace, what is the hardware connection?
For serial SPI port trace, the device SPI SDO (serial data output) and SCK (serial
clock) are required. These pins must be connected, respectively, to the DAT and
CLK pin interface on the Performance Pak receiver board. See
for more information.
? For SPI trace, which two pins are used?
SDO (Serial Data Output) → DAT (pin 7)
SCK (Serial Clock Output) → CLK (pin 8)
? What are the correct port settings to use SPI trace, i.e., mode, sync/async, etc.?
The setup is taken care of by MPLAB IDE, so you will not need to be concerned
about the code required for setting this. Trace will support 64 trace points and 128
log points.
SPI – Comm Protocol MODE1, clock high, sampled falling edge.
? What is the correct connection for using I/O Port (parallel port) trace?
The connection varies depending on the PORT used. There are port assignments
in MPLAB IDE that are displayed when the PORT is selected in the property
sheet. See Section 2.5.3 “I/O Port Trace Connections” for more information.
? Can we use any port?
The port must be available on the device and not multiplexed with the currently
used PGC and PGM pins.
? Of the 7 data and one clock, which one is the clock?
There are 7 bits of data to set up to 128 trace points. The clock is the MSB of the
port.
? Are these I/O ports used for trace available as general I/O during debugging?
For dsPIC30F/33F and PIC24F/H devices, you may write to the opposing 8-bit
part of the port provided byte write operations are used. The following example
will only write to the high side of the port.
#define high(num) (((BYTE *)&num)[1])
#define low(num) (((BYTE *)&num)[0])
high(PORTA) = 0x12;
For PIC18 devices, once the ports are defined to be used for trace, you should
not access them in your code.
? 2008 Microchip Technology Inc.
DS51616B-page 85
相关PDF资料
AC244006 KIT MPLAB REAL ICE TRACE
AC2626M6 PROBE TEMP 6" GENERAL PURP
AC300024 MOTOR STEPPER 2PHASE 8WIRE
AC300030 KIT ACOUSTIC ACCESSORY
ACM-16 CABLE MODULE FR3 16BIT 40-DIP
ACM-2X8 ACTIVE CABLE MODULE DUAL 8 BIT
ACM-8 CABLE MODULE FR3 8BIT 28/32-DIP
ACS9510EVB EVALUATION BOARD FOR ACS9510
相关代理商/技术参数
AC244005-2 功能描述:处理器配件 MPLAB REAL ICE w/ Performace Pak RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244006 功能描述:仿真器/模拟器 MPLAB REAL ICE TRACE INTERFACE Brd KIT RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
AC244007 制造商:Microchip Technology Inc 功能描述:MPLAB REAL ICE JTAG ADAPTER - Boxed Product (Development Kits) 制造商:Microchip Technology Inc 功能描述:ADAPTER MPLAB REAL ICE JTA 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG 制造商:Microchip Technology Inc 功能描述:ADAPTER, MPLAB, REAL, ICE, JTAG; Accessory Type:JTAG adaptor Board; For Use With:Microchip PIC32MX devices; SVHC:No SVHC (19-Dec-2012) ;RoHS Compliant: Yes
AC244008 功能描述:处理器配件 MPLAB REAL ICE Power Monitor RoHS:否 制造商:Olimex Ltd. 产品:Cable 用于:
AC244022 功能描述:插座和适配器 Procs Extnsn Pak for PIC24FJ128GA010-ICE RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244022 制造商:Microchip Technology Inc 功能描述:Processor Extension Pak for PI
AC244023 功能描述:插座和适配器 PROCESSOR EXTNSN PAK FOR PIC18F1xK50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x
AC244024 功能描述:插座和适配器 Processor Ext Pak for PIC18LF14K50 RoHS:否 制造商:Silicon Labs 产品:Adapter 用于:EM35x