AC244006 Microchip Technology, AC244006 Datasheet

KIT MPLAB REAL ICE TRACE

AC244006

Manufacturer Part Number
AC244006
Description
KIT MPLAB REAL ICE TRACE
Manufacturer
Microchip Technology
Datasheet

Specifications of AC244006

Accessory Type
Interface Board
Features
Instruction Trace Capability, Polarized Interface
For Use With
PIC32MX Plug-in Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC32
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AC244006
Manufacturer:
Microchip Technology
Quantity:
135
MPLAB
®
REAL ICE
In-Circuit Emulator
User’s Guide
© 2006 Microchip Technology Inc.
DS51616A

Related parts for AC244006

AC244006 Summary of contents

Page 1

... Microchip Technology Inc. MPLAB ® REAL ICE In-Circuit Emulator User’s Guide ™ DS51616A ...

Page 2

... Select Mode, Smart Serial, SmartTel, Total Endurance, UNI/O, WiperLock and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. All other trademarks mentioned herein are property of their respective companies. ...

Page 3

... Creating a Project ......................................................................................... 24 4.4 Viewing the Project ....................................................................................... 24 4.5 Building the Project ...................................................................................... 24 4.6 Setting Configuration Bits ............................................................................. 24 4.7 Setting the Emulator as the Debugger or Programmer ................................ 25 4.8 Settings Dialog ............................................................................................. 25 © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE Table of Contents IN-CIRCUIT ™ ...

Page 4

... USB Port/Power ........................................................................................... 42 7.5 Emulator Pod ................................................................................................ 42 7.6 Standard Communication Board .................................................................. 44 7.7 High-Speed Communication Boards ............................................................ 45 7.8 Other Emulator Boards (Future) ................................................................... 48 7.9 Target Board ................................................................................................ 48 Appendix A. Revision History A.1 Revision History ........................................................................................... 49 Glossary .......................................................................................................................51 Index .............................................................................................................................65 Worldwide Sales and Service .....................................................................................68 DS51616A-page iv ™ © 2006 Microchip Technology Inc. ...

Page 5

... Chapter 6: Using the Emulator as a Programmer – A description of emulator functions available in MPLAB IDE when the MPLAB REAL ICE in-circuit emulator is chosen as the programming tool. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE ...

Page 6

... Click the Power tab Press <Enter>, <F1> #define START autoexec.bat c:\mcc18\h _asm, _endasm, static -Opa+, -Opa 0xFF, ’A’ file.o, where file can be any valid filename mpasmwin [options] file [options] errorlevel {0|1} var_name [, var_name...] void main (void) { ... } © 2006 Microchip Technology Inc. ...

Page 7

... Transition Socket Specification (DS51194) Consult this document for information on transition sockets available for use with MPLAB ICE 2000/4000 device adaptors, MPLAB ICD 2 headers and MPLAB REAL ICE in-circuit emulator headers. © 2006 Microchip Technology Inc. DS51616A-page 3 ...

Page 8

... MPLAB SIM simulator, as well as general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 and PRO MATE Plus and PICkit™ 1 and 2 development programmers. DS51616A-page 4 ™ ® II device programmers and the PICSTART ® ® © 2006 Microchip Technology Inc. ...

Page 9

... Customers should contact their distributor, representative or field application engineer (FAE) for support. Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com © 2006 Microchip Technology Inc. DS51616A-page 5 ...

Page 10

... NOTES: DS51616A-page 6 ™ © 2006 Microchip Technology Inc. ...

Page 11

... Set breakpoints based on internal and/or external signals • Monitor internal file registers • Emulate full speed • Program your device • Trace lines of code or log variable/expression values © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE Chapter 1. Overview ® ...

Page 12

... Processor Extension Pack: High-speed driver board, ICE header/receiver board and cables to connect the emulator pod to a target board 9. Performance Pack: High-speed driver board, high-speed receiver board and cables to connect the emulator pod to a target board 10. High-speed to standard converter board 11. Transition socket DS51616A-page 8 ™ © 2006 Microchip Technology Inc. ...

Page 13

... MPLAB REAL ICE in-circuit emulator is faster than the MPLAB ICD 2. With the high-speed communication option much faster. Also, in addition to basic debug functions, the MPLAB REAL ICE in-circuit emulator incorporates “emulation” functions, such as trace. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® ...

Page 14

... For more on standard communication, see Chapter 7. “Hardware Specification”. DS51616A-page 10 ™ BASIC EMULATOR SYSTEM Indicator Lights USB/Power Emulator Pod ACTIVE STATUS Push Buttons FUNCTION RESET Logic Probe Connector Standard or High-Speed Driver Board CAUTION © 2006 Microchip Technology Inc. ...

Page 15

... FIGURE 2-2: FIGURE 2-3: © 2006 Microchip Technology Inc. STANDARD EMULATOR SYSTEM – DEVICE WITH ON-BOARD ICE CIRCUITRY Emulator Pod ACTIVE STATUS FUNCTION RESET Standard Driver Board STANDARD EMULATOR SYSTEM – ICE DEVICE Emulator Pod ACTIVE STATUS FUNCTION RESET Standard Driver Board ...

Page 16

... Driver Board DS51616A-page 12 ™ HIGH-SPEED EMULATOR SYSTEM – DEVICE WITH ON-BOARD ICE CIRCUITRY RESET J2 J3 High-Speed Receiver Board HIGH-SPEED EMULATOR SYSTEM – ICE DEVICE RESET Target Device Target Board High-Speed Header/Receiver Board J3 Device-ICE J2 Transition Socket Target Board © 2006 Microchip Technology Inc. ...

Page 17

... PC board in Figure 2-6. Note: Cable connections at the emulator and target are mirror images of each other, i.e., pin 1 on one end of the cable is connected to pin 1 on the other end of the cable. FIGURE 2-6: © 2006 Microchip Technology Inc. STANDARD CONNECTION AT TARGET PGD ...

Page 18

... User Reset 2 1K-10K 1 ® Interface Connector /MCLR), 5 (PGC) and 4 (PGD). Pins sensed by the emulator to allow level translation for DD Top of Target Board so that the line may DD Application PC Board V DD Device V /MCLR PP PGC PGD and are DD SS line (pin DD © 2006 Microchip Technology Inc. ...

Page 19

... No capacitors on MCLR – they will prevent fast transitions of V resistor is generally sufficient. • No diodes on PGC/PGD – they will prevent bidirectional communication between the emulator and the target device. © 2006 Microchip Technology Inc. and AV lines, but if they are present on the target DD ...

Page 20

... For more on this type of trace, see Section 5.5.2 “I/O Port Trace”. DS51616A-page 16 ™ SERIAL TRACE CONNECTIONS 5 ® Interface Connector PARALLEL TRACE CONNECTIONS Interface ® Connector 5 Probe Connector Application PC Board Device SPI/UART DAT CLK Application PC Board Device PORTx © 2006 Microchip Technology Inc. ...

Page 21

... The target device must have power and a functional, running oscillator. If the target device does not run, for whatever reason, the MPLAB REAL ICE in-circuit emulator cannot debug. © 2006 Microchip Technology Inc. PROPER CONNECTIONS FOR PROGRAMMING Programming Voltage ...

Page 22

... PGD Hardware Stack Shared by Debug Exec About 0x10 Bytes Used by Debug Exec /MCLR line low. PP Target Internal must Debug be Registers Running for Debug Executive to Function Debug Executive Area Reserved for Debug Executive Program Memory File Registers © 2006 Microchip Technology Inc. ...

Page 23

... Watchdog Timer enabled and table read protect. Note: A header board is required to debug some devices. These parts can be programmed without the header by connecting the V lines as described previously. © 2006 Microchip Technology Inc. /MCLR line to allow the target to run PGC and PGD PP ...

Page 24

... In MPLAB IDE, program memory and/or data memory (file register) displays marked with an "R" represent reserved registers. dsPIC DSC/PIC24 (device-ICE user program memory space used for debug. DS51616A-page 20 ™ Device Program Memory Used None* File Registers Used 0x800-0x822 © 2006 Microchip Technology Inc. ...

Page 25

... A driver board is inserted into the pod to select the type of communication with the target, either standard (for header boards and many demo boards) or high speed (for target boards over six inches away from the emulator). See Section 2.4 “System Configurations” for more details. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® ...

Page 26

... If you have not already done so, connect the emulator pod to the target using the appropriate cables for the driver board selected (see Section 3.4 “Selecting Target Communications”). Then power the target. Note: The emulator cannot power the target. DS51616A-page 22 ™ © 2006 Microchip Technology Inc. ...

Page 27

... Readme files – Last minute information on each release is included in Readme for MPLAB IDE.txt and Readme for MPLAB REAL ICE Emulator.txt. Both files are found in the Readmes subdirectory of the MPLAB IDE installation directory. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® ...

Page 28

... Although device Configuration bits may be set in code, they also may be set in the MPLAB IDE Configuration window. Select Configure>Configuration Bits. By clicking on the text in the “Settings” column, these can be changed. On most devices, the Watchdog Timer is enabled initially usually a good idea to disable this bit. DS51616A-page 24 ™ © 2006 Microchip Technology Inc. ...

Page 29

... Program Options Erase all before Program Check to erase all memory before programming begins. Program Memory Start, End © 2006 Microchip Technology Inc. MANUAL SELECTION OPTIONS Check to program Program Memory into target. Check to program Configuration bits into target. Note: This memory is always programmed when in Debug mode. ...

Page 30

... Click Manual Download to manually select a firmware file to download to the target device. 4.8.3 Instrumented Trace Tab Set the size of the trace buffer. Note: There is currently a 256k trace line maximum. For more on tracing, see Chapter 5. “Using the Emulator as a Debugger”. DS51616A-page 26 ™ © 2006 Microchip Technology Inc. ...

Page 31

... Breakpoints and data capture triggers use the same resources. Therefore, the avail- able number of breakpoints is actually the available number of combined breakpoints/triggers. Note: There is a 60-instruction-cycle delay between data captures. See Section 5.7.7 “Triggers Dialog” for more information. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® IN-CIRCUIT EMULATOR DS51616A-page 27 ...

Page 32

... Trace” and then select the Transport for trace data, i.e., “Capture Trace” for stan- dard communication transport or “I/O Port” for I/O port data transport. If using I/O port transport, select the port you will be using from the pull-down list. Click OK. DS51616A-page 28 ™ © 2006 Microchip Technology Inc. ...

Page 33

... Select View>Trace to view the trace data (Section 5.7.10 “Trace Window”) or right click and in the Trace window and select “Reload”. Repeat these steps each time you change a trace point. © 2006 Microchip Technology Inc. On the Project Manager toolbar, select “Debug” from the drop-down list. ...

Page 34

... For C code, this command executes one line of C code, which may mean the execution of one or more assembly instruction, and then halts. After execution, all the windows are updated. Note: Do not step into a SLEEP instruction. Step Over code, steps over the current line of code. DS51616A-page 30 ™ © 2006 Microchip Technology Inc. ...

Page 35

... Log the occurrence of the selected line in the trace window. See Section 5.5.5 “Setting Up Trace in MPLAB IDE”. Set/Remove Breakpoint Set or remove a breakpoint at the currently selected line. Enable/Disable Breakpoint Enable or disable a breakpoint at the currently selected line. Breakpoints Remove, enable or disable all breakpoints. © 2006 Microchip Technology Inc. DS51616A-page 31 ...

Page 36

... Information about each breakpoint is visible in this window. TABLE 5-1: Control Breakpoint Type Address File Line # Enabled DS51616A-page 32 ™ BREAKPOINT DIALOG WINDOW Type of breakpoint – program or data Hex address of breakpoint location File name and line number of breakpoint location Check to enable a breakpoint Function © 2006 Microchip Technology Inc. ...

Page 37

... PROGRAM MEMORY TAB Set up a program memory breakpoint here. TABLE 5-3: Control Address Breakpoint Type Pass Count © 2006 Microchip Technology Inc. BREAKPOINT DIALOG BUTTONS Function Add a breakpoint Set up the stopwatch Set up break on an event Set up a sequence till break Set up ANDED condition till ...

Page 38

... Reset the stopwatch values to zero every time the program is run. Function break bus read of above break bus read of above break bus write of above break bus write of above – wait Count (0-255) – break only after event specified in Function © 2006 Microchip Technology Inc. ...

Page 39

... As an example breakpoints are available, and two breakpoints are set two triggers may be set also. If Capture trace is used, then real-time data capture triggers cannot be used because of hardware constraints. However, breakpoints are still available. © 2006 Microchip Technology Inc. DS51616A-page 35 ...

Page 40

... Go To Source Line – Open a File window and go to the source code line corresponding to the selected trace line. DS51616A-page 36 ™ TRIGGER SETUP Trigger Positive or negative edge triggered High-to-low or Low-to-high pulse Action Halt or Reset on trigger Assert on Halt or Run © 2006 Microchip Technology Inc. ...

Page 41

... Enter a “Start” and “End” cycle to write to the file. Also specify if the text tab-delimited. Print Print the contents of the trace memory window. Refresh Refresh the viewable contents of the window. Properties Set up window properties. © 2006 Microchip Technology Inc. DS51616A-page 37 ...

Page 42

... NOTES: DS51616A-page 38 ™ © 2006 Microchip Technology Inc. ...

Page 43

... Check to see that all device memory is erased/blank. Erase Flash Device Erase all Flash memory. Settings Open the Programmer dialog (see Section 4.8 “Settings Dialog”). Set up program and firmware options. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® IN-CIRCUIT EMULATOR DS51616A-page 39 ...

Page 44

... Device). The selected programmer (MPLAB REAL ICE), as well as other programming information, is displayed in the status bar on the bottom of the MPLAB IDE desktop. Refer to the MPLAB IDE on-line help for information on the contents of the status bar. DS51616A-page 40 ™ © 2006 Microchip Technology Inc. ...

Page 45

... The development system must be used only in an industrial (or comparable) area. 2. The system must not be operated within 20 meters of any equipment which may be affected by such emissions (radio receivers, TVs etc.). © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE ...

Page 46

... Push Buttons The push buttons have the following significance. Push Button Reset Function DS51616A-page 42 ™ Related LED Status Push to Reset the device. Status Halt – When running, push to put the emulator in the Break or halted condition. Description © 2006 Microchip Technology Inc. ...

Page 47

... Gnd 14 Gnd *Do not connect V * *Do not connect EXT0 to EXT7. This is dedicated to self test. © 2006 Microchip Technology Inc. Color Description Lit when power is first applied or when target is connected. Lit when the emulator is operating normally – standby. Lit when an operation has failed. ...

Page 48

... Standard Socket Bottom of 4 Target Board 2. 1.65V 1.9V min V = 1.2V min 0.3V max V = 0.45V max connection DD Pin Name Function Vpp Power Vdd_TGT Power on target GND Ground ICSPDAT Standard Com Data ICSPCLK Standard Com Clock AUX Auxiliary © 2006 Microchip Technology Inc. ...

Page 49

... The high-speed driver board assembly is inserted into the emulator pod via the card guide. Note: Data rates MIPS are possible. FIGURE 7-3: J3 Pinout Pin future feature J2 Pinout Pin © 2006 Microchip Technology Inc. 2 C™ interface for sending and receiving status information to the DUAL 8-PIN PINOUT ...

Page 50

... RECEIVER BOARD SCHEMATIC – ICSPDAT AHC1G04-SOT5 NDATA_EN DATA_EN _TAR DD 4 DATA DATA_EN SN65MLVD206 3 DATAEN 100 DATAEN- SN65MLVD206 Pin Name Function 5 ICSPCLK Standard Com Clock 6 AUX Auxiliary 7 DAT *Trace Data 8 CLK *Trace Clock +3. DIR ICSPDAT 4.7K GND 74LVC1T45_SOT-6P DATA_EN © 2006 Microchip Technology Inc. ...

Page 51

... FIGURE 7-6: LVC+ 100 LVC- FIGURE 7-7: USPIC+ USPIC- © 2006 Microchip Technology Inc. RECEIVER BOARD SCHEMATIC – ICSPCLK AHC1G04-SOT5 NCLK_EN CLK_EN _TAR DD 4 CLK CLK_EN SN65MLVD206 3 CLKEN 100 CLKEN- SN65MLVD206 RECEIVER BOARD SCHEMATIC – DAT & CLK +3.3V 3 USPID 100 ...

Page 52

... The emulator cannot power the target. Depending on the type of emulator-to-target communications used, there will be some considerations for target board circuitry: • Section 2.5.3 “Target Connection Circuitry” • Section 2.5.4 “Circuits That Will Prevent the Emulator From Functioning” DS51616A-page 48 ™ © 2006 Microchip Technology Inc. ...

Page 53

... Appendix A. Revision History A.1 REVISION HISTORY Revision A (September 2006) • Initial release of this document. © 2006 Microchip Technology Inc. MPLAB ® REAL ICE EMULATOR USER’S GUIDE ™ IN-CIRCUIT DS51616A-page 49 ...

Page 54

... NOTES: DS51616A-page 50 ™ © 2006 Microchip Technology Inc. ...

Page 55

... A programming language that describes binary machine code in a symbolic form. Asynchronous Stimulus Data generated to simulate external inputs to a simulator device. Breakpoint, Hardware An event whose execution will cause a halt. © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE ...

Page 56

... A tool used to program electrically programmable semiconductor devices such as microcontrollers. Directives Statements in source code that provide control of the language tool’s operation. Download Download is the process of sending data from a host to another device, such as an emulator, programmer or target board. DS51616A-page 52 ™ © 2006 Microchip Technology Inc. ...

Page 57

... External Input Line An external input signal logic probe line (TRIGIN) for setting an event based upon external signals. External RAM Off-chip Read/Write memory. © 2006 Microchip Technology Inc. DS51616A-page 53 ...

Page 58

... Bring data into the MPLAB IDE from an outside source, such as from a hex file. Instruction Set The collection of machine language instructions that a particular processor understands. Instructions A sequence of bits that tells a central processing unit to perform a particular operation and can contain data to be used in the operation. DS51616A-page 54 ™ © 2006 Microchip Technology Inc. ...

Page 59

... Listing File A listing file is an ASCII text file that shows the machine code generated for each C source statement, assembly instruction, assembler directive or macro encountered in a source file. © 2006 Microchip Technology Inc. DS51616A-page 55 ...

Page 60

... Directives that control the execution and data allocation within macro body definitions. Make Project A command that rebuilds an application, recompiling only those source files that have changed since the last complete compilation. MCU Microcontroller Unit. An abbreviation for microcontroller. Also uC. DS51616A-page 56 ™ © 2006 Microchip Technology Inc. ...

Page 61

... Mnemonics Text instructions that can be translated directly into machine code. Also referred to as opcodes. MPASM™ Assembler Microchip Technology’s relocatable macro assembler for PICmicro microcontroller devices, KeeLoq MPLAB ASM30 Microchip’s relocatable macro assembler for dsPIC30F digital signal controller devices. ...

Page 62

... PIC18CXXX device where memory may reside on the target board, or where all program memory may be supplied by the Emulator. The Memory tab accessed from Options>Development Mode provides the Off-Chip Memory selection dialog box. Opcodes Operational Codes. See Mnemonics. DS51616A-page 58 ™ © 2006 Microchip Technology Inc. ...

Page 63

... A set of source files and instructions to build the object and executable code for an application. Prototype System A term referring to a user's target application, or target board. PWM Signals Pulse Width Modulation Signals. Certain PICmicro MCU devices have a PWM peripheral. © 2006 Microchip Technology Inc. II DS51616A-page 59 ...

Page 64

... MPLAB IDE updates register windows, watch variables and status displays so you can analyze and debug instruction execution. You can also single step C compiler source code, but instead of executing single instructions, MPLAB IDE will execute all assembly level instructions generated by the line of the high-level C statement. DS51616A-page 60 ™ © 2006 Microchip Technology Inc. ...

Page 65

... CALL instruction, the next breakpoint will be set at the instruction after the CALL. If for some reason the subroutine gets into an endless loop or does not return properly, the next breakpoint will never be reached. The Step Over command is the same as Single Step except for its handling of CALL instructions. © 2006 Microchip Technology Inc. DS51616A-page 61 ...

Page 66

... Any number of trigger output points can be set. Uninitialized Data Data which is defined without an initial value int myVar; defines a variable which will reside in an uninitialized data section. DS51616A-page 62 ™ © 2006 Microchip Technology Inc. ...

Page 67

... Watch windows contain a list of watch variables that are updated at each breakpoint. Watchdog Timer A timer on a PICmicro microcontroller that resets the processor after a selectable length of time. The WDT is enabled or disabled and set up using Configuration bits. WDT See Watchdog Timer. © 2006 Microchip Technology Inc. DS51616A-page 63 ...

Page 68

... NOTES: DS51616A-page 64 ™ © 2006 Microchip Technology Inc. ...

Page 69

... Sequence of Operations ................................... 18 Documentation Conventions ........................................................ 2 Layout ................................................................. 1 Driver Board High-Speed..............................................8 Standard ..................................................8 Durability, Card Guide.............................................. 42 E Erase........................................................................ 39 Erase Flash Device .................................................. 31 External Triggers.................................................36 © 2006 Microchip Technology Inc. MPLAB REAL ICE ® EMULATOR USER’S GUIDE Index H Halt........................................................................... 30 Header Board..................................................... 19 Specification........................................................ 3 High-Speed Communication .................................... 12 Connections ...................................................... 14 31 ...

Page 70

... I/O Port.............................................................. 16 Improper Circuits............................................... 15 SPI/UART ......................................................... 16 Standard ........................................................... 13 Target Device ..................................................... 17 Trace .........................................................7 Capture ............................................................. 28 I/O Port........................................................ 16 SPI/UART ......................................................... 16 Trace Window .......................................................... 36 Transition Socket ....................................................... 8 Specification.................................................. 3 Triggers .............................................................. 27 External ............................................................. 43 U UART Trace ............................................................. 16 USB .................................................................... 42 Cables ........................................................... 8 Device Drivers................................................... 21 V Verify ........................................................................ 39 W Watchdog Timer ....................................................... 18 Web Site, Microchip ................................................... 4 DS51616A-page 66 ™ © 2006 Microchip Technology Inc. ...

Page 71

... NOTES: © 2006 Microchip Technology Inc. DS51616A-page 67 ...

Page 72

... Fax: 886-3-572-6459 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2006 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-3910 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords