Debug for 8- and 16-Bit Devices
EXAMPLE 7-3:
dsPIC33F DEVICE RUNNING AT 10 MIPS WITH C PROJECT
Native
SPI
I/O Port
Library Size (in instructions)
GPRs Used (in bytes)
__TRACE(id) instruction cycles
__LOG(id, INT) instruction cycles
87 + 9
18
80
212
92 + 9
14
53
124
93 + 9
0
32
106
EXAMPLE 7-4:
dsPIC33F DEVICE RUNNING AT 16 MIPS WITH C PROJECT
Native
SPI
I/O Port
__TRACE(id) instruction cycles
__LOG(id, INT) instruction cycles
88
227
53
138
32
106
EXAMPLE 7-5:
dsPIC33F DEVICE RUNNING AT 34 MIPS WITH C PROJECT
Native
SPI
I/O Port
__TRACE(id) instruction cycles
__LOG(id, INT) instruction cycles
7.3.10
More on Trace/Log ID Numbers
100
251
53
152
32
106
MPLAB IDE will automatically generate the ID numbers required for a trace or log
macro. However, to understand the method behind the numbering, read further.
You can have 64 trace points and 128 log points. These limits are determined by port
trace (8 bits). Bit 7 is used as a clock, thus leaving 7 bits for data (128). Bit 6 is a flag
which indicates a trace record instead of a log record.
For a trace record (bit 6 is 1), the low order bits represent the trace number (nnnnnn).
You could say 0-63 are the legal trace numbers and require the trace flag be set, but it
was just easier to combine the flag with the number and say the valid numbers are
64-127.
clock
1
n
n
n
n
n
n
bit 7
bit 0
For a log record (bit 6 is 0), the low order bits identify the data type (t) and the log
number is sent in the next byte (nnnnnnn), thus freeing up a full 128 values.
clock
0
t
t
t
t
t
t
bit 7
bit 0
clock
n
n
n
n
n
n
n
? 2008 Microchip Technology Inc.
bit 7
bit 0
DS51616B-page 73
相关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