Microchip Technology MPLAB PICkit 4 User Manual

Microchip Technology MPLAB PICkit 4 User Manual

In-circuit debugger
Table of Contents

Advertisement

®
MPLAB
PICkit
4 In-Circuit Debugger User's Guide

Notice to Customers

Important: 
All documentation becomes dated and this manual is no exception. Microchip tools and documentation are
constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ
from those in this document. Please refer to our website (www.microchip.com) to obtain the latest
documentation available.
Documents are identified with a "DS" number. This number is located on the bottom of each page, in front
of the page number. The numbering convention for the DS number is "DSXXXXXA," where "XXXXX" is the
document number and "A" is the revision level of the document.
®
For the most up-to-date information on development tools, see the MPLAB
X IDE online help. Select the
Help menu and then Topics, to open a list of available online help files.
User Guide
DS50002751D-page 1
©
2020 Microchip Technology Inc.

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MPLAB PICkit 4 and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology MPLAB PICkit 4

  • Page 1: Notice To Customers

    For the most up-to-date information on development tools, see the MPLAB X IDE online help. Select the Help menu and then Topics, to open a list of available online help files. User Guide DS50002751D-page 1 © 2020 Microchip Technology Inc.
  • Page 2: Table Of Contents

    1.2. Conventions Used in This Guide....................4 1.3. Recommended Reading.......................5 About the Debugger..........................7 2.1. MPLAB PICkit 4 In-Circuit Debugger Description................ 7 2.2. MPLAB PICkit 4 In-Circuit Debugger Advantages............... 7 2.3. MPLAB PICkit 4 In-Circuit Debugger Components..............8 2.4. MPLAB PICkit 4 Block Diagram....................9 Operation..............................
  • Page 3 10.1. Debugger Selection and Switching.................... 50 10.2. Debugger Options Selection...................... 50 11. Hardware Specification......................... 56 11.1. USB Connector.......................... 56 11.2. MPLAB PICkit 4 In-Circuit Debugger..................56 11.3. Communication Hardware......................58 11.4. Target Board Considerations......................61 12. Revision History............................ 63 12.1. Revision A (May 2018)....................... 63 12.2.
  • Page 4: Introduction

    Document Layout This document describes how to use the MPLAB PICkit 4 In-Circuit Debugger as a development tool to emulate and debug firmware on a target board, as well as how to program devices. The document is organized as follows: •...
  • Page 5: Recommended Reading

    MPLAB PICkit 4 Quick Start Guide Poster (DS50002721) This poster shows you how to connect the hardware and install the software for the MPLAB PICkit 4 In-Circuit Debugger using standard communications and a target board.
  • Page 6 This booklet describes how to install and use headers. Headers are used to better debug selected devices, without the loss of pins or resources. See also the PEP and Header online Help file. User Guide DS50002751D-page 6 © 2020 Microchip Technology Inc.
  • Page 7: About The Debugger

    MPLAB X Integrated Development Environment (IDE). The MPLAB PICkit 4 is connected to the design engineer's computer using a high-speed 2.0 USB interface and can be connected to the target via a Microchip debug 8-pin Single In-Line (SIL) connector. The connector uses two device ™...
  • Page 8: Mplab Pickit 4 In-Circuit Debugger Components

    The components of the MPLAB PICkit 4 In-Circuit Debugger system are: • A rectangular-shaped MPLAB PICkit 4 unit housed in a durable, black plastic case with a brushed metal top which is accented with an indicator light strip, button area.
  • Page 9: Mplab Pickit 4 Block Diagram

    About the Debugger • (Part Number AC002015) - a connectivity board that supports JTAG, SWD and ICSP protocols, useful for ® debugging legacy AVR with MPLAB PICkit 4 (https://www.microchipdirect.com/product/search/all/AC102015). • Transition sockets. • ICD headers. • MPLAB processor extension paks.
  • Page 10: Operation

    Operation A simplified theory of operation of the MPLAB PICkit 4 In-Circuit Debugger system is provided here. It is intended to provide enough information so that a target board can be designed that is compatible with the debugger for both debugging and programming operations.
  • Page 11: Target Communication Connections

    Important:  Refer to the data sheet for the device you are using as well as the application notes and the specific interface for additional information and diagrams. 3.2.1 Standard Communication Target Connection USING SINGLE IN-LINE CONNECTOR Use the single in-line connector between the MPLAB PICkit 4 In-Circuit Debugger and the target board connector (see Figure 3-1 Standard Communication).
  • Page 12 USING AN ADAPTER Use the AC164110 adapter between the MPLAB PICkit 4 In-Circuit Debugger and the target device with the modular interface (six conductor) cable. The pin numbering for the connector is shown from the bottom of the target PCB in Figure 3-3.
  • Page 13 3.2.5 Circuits That Will Prevent the Debugger From Functioning The figure below shows the active debugger lines with some components that will prevent the MPLAB PICkit 4 In- Circuit Debugger system from functioning. User Guide DS50002751D-page 13 ©...
  • Page 14: Debugging

    Debugging There are two steps to using the MPLAB PICkit 4 In-Circuit Debugger system as a debugger. The first requires that an application is programmed into the target device (usually with the MPLAB PICkit 4 itself). The second uses the internal in-circuit debug hardware of the target Flash device to run and test the application program.
  • Page 15: Requirements For Debugging

    PGC and data is read back from PGD. This sequence confirms the debugger and device are communicating correctly. Requirements for Debugging To debug (set breakpoints, see registers, etc.) with the MPLAB PICkit 4 In-Circuit Debugger system, there are critical elements that must be working correctly: •...
  • Page 16 Debugger. • The target device is run in Debug mode. 3.4.2 Debugging Details The figure below illustrates the MPLAB PICkit 4 In-Circuit Debugger system when it is ready to begin debugging. ® ™ Figure 3-9. MPLAB PICkit 4 In-Circuit Debugger Ready to Begin Debugging To find out whether an application program will run correctly, a breakpoint is typically set early in the program code.
  • Page 17: Programming

    Notice:  Headers are not supported at this time. In MPLAB X IDE, use the MPLAB PICkit 4 as a programmer to program a non-ICE/-ICD device, such as a device not on a header board. Set the MPLAB PICkit 4 In-Circuit Debugger as the current tool (click the Debug Tool PICkit 4 in the navigation window, select File >...
  • Page 18: Debugger Usage

    Refer to the MPLAB X IDE Help file titled “Getting Started with MPLAB X IDE,” and navigate through the “Tutorial” to the “Running and Debugging Code” section. Quick Debug/Program Reference The following table is a quick reference for using the MPLAB PICkit 4 In-Circuit Debugger as either a debugging or programming tool. User Guide DS50002751D-page 18 ©...
  • Page 19: Debugger Limitations

    Debugger Usage Notice:  For header support, see the Release Notes for MPLAB PICkit 4 in MPLAB X IDE v5.25 or greater. Table 4-1. Debug vs. Program Operation Item Debug Program Needed Hardware A computer and target application (Microchip demo board or your own design).
  • Page 20: Connecting The Target Board

    4.7.2 Using ICE Devices Notice:  For header support, see the latest Release Notes for MPLAB PICkit 4 in MPLAB X IDE v5.25 or greater. For ICE devices, an ICE header board is required. The header board contains the hardware that is necessary to emulate a specific device or family of devices.
  • Page 21: Setting Up Mplab X Ide

    Board). Then power the target. Setting Up MPLAB X IDE Once the hardware is connected and powered, MPLAB X IDE may be set up for use with the MPLAB PICkit 4 In- Circuit Debugger. On some devices, you must select the communications channel in the Configuration bits, for example, PGC1/EMUC1 and PGD1/EMUD1.
  • Page 22: Viewing Processor Memory And Files

    Select Use software breakpoints to use software breakpoints. Clear the selection to use hardware breakpoints. Tip:  Using software breakpoints for debugging impacts device endurance. Therefore, it is recommended that devices used in this manner are not be used as production parts. User Guide DS50002751D-page 22 © 2020 Microchip Technology Inc.
  • Page 23 Breakpoints halt execution of code. To determine the time between the breakpoints, use the stopwatch. Refer to the MPLAB X IDE online Help for instructions on how to set up and use breakpoints and the stopwatch. User Guide DS50002751D-page 23 © 2020 Microchip Technology Inc.
  • Page 24: Mplab Pickit 4 Programmer-To-Go

    When Connected to Computer When the MPLAB PICkit 4 is connected to the computer and in the MPLAB X IDE or MPLAB IPE application, use the supplied USB cable between the computer and the Micro-B USB connector located on the top of the tool.
  • Page 25: Limitations For Programmer-To-Go

    Go, the minimum power required from the target board to the MPLAB PICkit 4 is 350 mA. If sufficient power cannot be supplied from the target board, then MPLAB PICkit 4 must be powered by a 5V power supply through the Micro-B USB connector on the top of the MPLAB PICkit 4 tool. There are several options for providing power, such as, using: •...
  • Page 26: Setting Up Pickit 4 For Programmer-To-Go Mode

    5.3.1 Setting Up PTG Mode Using MPLAB X IDE Using MPLAB X IDE, follow these steps to download the project files into the microSDHC card in the MPLAB PICkit 4 and enter Programmer-To-Go mode. Insert a formatted FAT32-compatible microSDHC card into the PICkit 4.
  • Page 27 In the Send image to tool, the check box is selected by default. With the box checked, the PTG image is created and then sent to the microSDHC card in the connected MPLAB PICkit 4. The Program Device check box is selected by default. When the check box selected, the device connected to the MPLAB PICkit 4 is programmed.
  • Page 28 5.3.2 Setting Up PTG Mode with MPLAB IPE Using MPLAB IPE, follow these steps to download the project files into the microSDHC card in the MPLAB PICkit 4 and enter Programmer-To-Go mode. Insert a formatted FAT32-compatible microSDHC card into the PICkit. 4.
  • Page 29 In the Send image to tool, the check box is selected by default. With the check box selected, the PTG image is created and then sent to the microSDHC card in the connected MPLAB PICkit 4. The Program Device the check box is selected by default. With the box checked, the device connected to the MPLAB PICkit 4 is programmed.
  • Page 30: Using Programmer-To-Go

    Remember, in order to use PTG, you must have a microSDHC card, with the necessary image inserted in the PICkit Using Programmer-To-Go When you are ready to start programming devices using the MPLAB PICkit 4 in PTG mode, complete the following steps: Connect the PICkit 4 tool, with a microSDHC card inserted, to the target board with the device specified in your project.
  • Page 31: Exiting Programmer-To-Go Mode

    Exiting Programmer-To-Go Mode To exit from Programmer-To-Go mode, plug the MPLAB PICkit 4 unit into a PC USB port and connect to MPLAB X IDE or MPLAB IPE. Initiate any non-PTG operation (for example, Program, Erase, etc.) and the following message displays: “The PICkit 4 is currently in programmer to go mode.
  • Page 32: Troubleshooting

    Troubleshooting Troubleshooting If you are having problems with MPLAB PICkit 4 In-Circuit Debugger operation, start here. Some Questions to Answer First Which device are you working with? Often an upgrade to a newer version of MPLAB X IDE is required to support newer devices.
  • Page 33: Other Things To Consider

    This can occur if the Project Properties Firmware options has the “Use Latest Firmware” box unchecked and there is a new firmware version available with the MPLAB X IDE version. User Guide DS50002751D-page 33 © 2020 Microchip Technology Inc.
  • Page 34 Disconnect the Micro-B USB cable from the debugger. Press down on the MPLAB PICkit 4 logo and hold while plugging in the Micro-B USB cable. The light strip flashes purple. Continue pressing the logo until the light strip stops flashing and changes to steady on purple.
  • Page 35 Troubleshooting Figure 6-3. Emergency Recovery Button If the procedure was successful, the recovery wizard displays a success screen. The MPLAB PICkit 4 will now be operational and able to communicate with the MPLAB X IDE. If the procedure failed, try it again. If it fails a second time, contact Microchip Support at https:// support.microchip.com.
  • Page 36: Frequently Asked Questions

    No. The device will run at any device speed as specified in the data sheet. Is it possible to debug a dsPIC DSC device running at any speed? The MPLAB PICkit 4 In-Circuit Debugger is capable of debugging at any device speed as specified in the device’s data sheet.
  • Page 37 __attribute__((__interrupt__)) _OscillatorFail(void); void __attribute__((__interrupt__)) _AltOscillatorFail(void); void __attribute__((__interrupt__)) _OscillatorFail(void) INTCON1bits.OSCFAIL = 0; //Clear the trap flag while (1); void __attribute__((__interrupt__)) _AltOscillatorFail(void) INTCON1bits.OSCFAIL = 0; while (1); • Use ASSERTs. For example: ASSERT (IPL==7) User Guide DS50002751D-page 37 © 2020 Microchip Technology Inc.
  • Page 38: Error Messages

    Error Messages Error Messages The MPLAB PICkit 4 In-Circuit Debugger produces various error messages; some are specific and others can be resolved with general corrective actions. In general, read any instructions under your error message. If these fail to fix the problem or if there are no instructions, refer to the following sections.
  • Page 39 8.1.4 Miscellaneous Errors MPLAB PICkit 4 is busy. Please wait for the current operation to finish. If you receive this error when attamepting to deselect the debugger as a debugger or programmer: Wait. Give the debugger time to finish any application tasks. Then try to deselect the debugger again.
  • Page 40 Please download the latest version of MPLAB X to use this tool. DISCONNECT_WHILE_BUSY=The tool was disconnected while it was busy. EEDATA_MEMORY=EEData memory EEDATA=EEData EMPTY_PROGRAM_RANGES=The programming operation did not complete because no memory areas have been selected. User Guide DS50002751D-page 40 © 2020 Microchip Technology Inc.
  • Page 41 FAILED_TO_GET_DEVID=Failed to get Device ID. Please make sure the target device is attached and try the operation again. FAILED_TO_INIT_TOOL=Failed to initialize PICkit 4 FAILED_UPDATING_BP=Failed to update breakpoint:\nFile: %s\naddress: %08x FAILED_UPDATING_FIRMWARE=Failed to properly update the firmware. FILE_REGISTER=file register FIRMWARE_DOWNLOAD_TIMEOUT=PICkit 4 timeout out during the firmware download process. User Guide DS50002751D-page 41 © 2020 Microchip Technology Inc.
  • Page 42 INVALID_ADDRESS=The operation cannot proceed because the %s address is outside the devices address range of 0x%08x - 0x%08x. JTAG_NEEDS_JTAGEN=The JTAG Adapter requires the JTAG enable configuration bit to be turned on. Please enable this configuration bit before continuing. User Guide DS50002751D-page 42 © 2020 Microchip Technology Inc.
  • Page 43 NO_DYNAMIC_BP_SUPPORT_AT_ALL=The current device does not support the ability to set breakpoints while the devices is running. The breakpoint will be applied prior to the next time you run the device. NO_PGM_HANDLER=Cannot program software breakpoints. The program handler has not been initialized. User Guide DS50002751D-page 43 © 2020 Microchip Technology Inc.
  • Page 44 PRESERVE_MEM_RANGE_ERROR_STARTADDR_NOT_ALIGNED=Invalid preserve range received: start address %s is not aligned on a proper 0x%x address boundary. Please check the manual program ranges on the debug tool's, "Memories to Program" property page. User Guide DS50002751D-page 44 © 2020 Microchip Technology Inc.
  • Page 45 RUN_INTERRUPT_THREAD_SYNCH_ERROR=An internal run error has occurred. It is advised that you restart your debug session. You may continue running but certain run time features may no longer work properly. RUN_TARGET_FAILED=Unable to run the target device. RUNNING=Running SERIAL_NUM=Serial Number:\n User Guide DS50002751D-page 45 © 2020 Microchip Technology Inc.
  • Page 46 VOLTAGE_LEVEL_BAD_VALUE=Unable to parse the voltage level %s. Please enter a valid voltage entry. VOLTAGE_LEVEL_OUT_OF_RANGE=The target voltage level you have entered, %.3f, is outside the range of the device %.3f - %.3f. User Guide DS50002751D-page 46 © 2020 Microchip Technology Inc.
  • Page 47: General Corrective Actions

    Ensure that the cable(s) are of the correct length. 8.2.3 Debugger to Computer Communication Error Actions If the MPLAB PICkit 4 In-Circuit Debugger and MPLAB X IDE or MPLAB IPE are not communicating with each other: Unplug and then plug in the debugger. Reconnect to the debugger.
  • Page 48 Error Messages 8.2.6 Debug Failure Actions The MPLAB PICkit 4 In-Circuit Debugger was unable to perform a debugging operation. There are numerous reasons why this might occur. See 6.2 Top Reasons Why You Can't Debug 6.3 Other Things to Consider.
  • Page 49: Engineering Technical Notes (Etns)

    The following ETNs are related to the MPLAB PICkit 4 In-Circuit Debugger. Please see the product web page for details. ETN37: MPLAB PICkit 4 V Overshoot Modification can be found on the MPLAB PICkit 4 product web page at https://www.microchip.com/Developmenttools/ProductDetails/PG164140. User Guide DS50002751D-page 49 ©...
  • Page 50: Debugger Function Summary

    Debugger Function Summary Debugger Function Summary A summary of the MPLAB PICkit 4 In-Circuit Debugger functions are summarized below. 10.1 Debugger Selection and Switching Use the Project Properties dialog to select or switch debuggers for a project. To switch you must have more than one debugger connected to your computer.
  • Page 51 0-ff, 200-2ff). Areas are reserved by reading them into MPLAB X IDE and then programming them back down when a program operation occurs. Thus the preserved areas must lie within a memory range that will be programmed. User Guide DS50002751D-page 51 © 2020 Microchip Technology Inc.
  • Page 52 If not checked, the device is not erased and program code will be merged with the code already in the device. User Guide DS50002751D-page 52 © 2020 Microchip Technology Inc.
  • Page 53 3.2.4 Debugger Powered). Voltage Level If the “Power Target Circuit from PICkit 4” check box is checked, select the target V that the debugger will provide. 10.2.6 Programmer-To-Go Select the Programmer-To-Go options. User Guide DS50002751D-page 53 © 2020 Microchip Technology Inc.
  • Page 54 This check box is selected by default. With the box checked, the PTG image is created and then tool sent to the microSDHC card in the connected MPLAB PICkit 4. Program Device This check box is selected by default. With the box checked, the device connected to the MPLAB PICkit 4 is programmed.
  • Page 55 Interface (UPDI). On low pin count AVR devices with UPDI, the UPDI pin can be configured as GPIO or RESET by configuring the RSTPINCFG configuration bits. To do further programming, the MPLAB PICkit 4 will have to use a high voltage pulse to reactivate the UPDI interface. When using the high voltage pulse, you must make sure that all circuits connected to the UPDI wire can tolerate a pulse of at least 12V.
  • Page 56: Hardware Specification

    11.1 USB Connector The MPLAB PICkit 4 In-Circuit Debugger is connected to the host computer via a Micro-B USB connector, version 2.0 compliant. The Micro-B USB connector is located on the top of the debugger. The system is capable of reloading the firmware via the USB interface.
  • Page 57 An SRAM for holding the program code image. This image is used for programming on-board Flash device. • One LED strip. 11.2.2 Indicator Lights Strip The expected start-up sequence for the MPLAB PICkit 4 debugger is: User Guide DS50002751D-page 57 © 2020 Microchip Technology Inc.
  • Page 58: Communication Hardware

    The V high-voltage lines can produce a variable voltage that can swing from 0-14V to satisfy the voltage requirements of the specific emulation processor. User Guide DS50002751D-page 58 © 2020 Microchip Technology Inc.
  • Page 59 The clock and data connections are interfaces with the following characteristics: • Clock and data signals are in high-impedance mode (even when no power is applied to the MPLAB PICkit 4 In- Circuit Debugger system). • Clock and data signals are protected from high voltages caused by faulty target systems, or improper connections.
  • Page 60 Note:  Refer to the data sheet for the device you are using as well as the application notes for the specific interface for additional information and diagrams. Table 11-5. Pinouts for Debug Interfaces MPLAB PICkit 4 DEBUG ® ®...
  • Page 61: Target Board Considerations

    Exposure to maximum rating conditions for extended periods may affect device reliability. The debugger does sense target voltage. Depending on the type of debugger-to-target communication that is used, there are some considerations for target board circuitry: • 3.2.2 Target Connection Circuitry User Guide DS50002751D-page 61 © 2020 Microchip Technology Inc.
  • Page 62 Hardware Specification • 3.2.5 Circuits That Will Prevent the Debugger From Functioning User Guide DS50002751D-page 62 © 2020 Microchip Technology Inc.
  • Page 63: Revision History

    Revision A (May 2018) Initial release of this document. 12.2 Revision B (August 2018) • Added information on the Debug Adapter Board in 2.3 MPLAB PICkit 4 In-Circuit Debugger Components. • Expanded Table 11-5 table to include pinouts for additional interfaces.
  • Page 64: Support

    ) Integrated Development Environment for development systems tools. • Programmers – The latest information on Microchip programmers. These include the device (production) programmers MPLAB REAL ICE in-circuit emulator, MPLAB ICD 4 in-circuit debugger, MPLAB PICkit 4 in-circuit debugger, MPLAB PM3 and development (non-production) programmers PICkit 3. •...
  • Page 65: Glossary

    The American National Standards Institute is an organization responsible for formulating and approving standards in the United States. Application ® A set of software and hardware that may be controlled by a PIC microcontroller. User Guide DS50002751D-page 65 © 2020 Microchip Technology Inc.
  • Page 66 When necessary, it works in conjunction with the arithmetic logic unit (ALU) to complete the execution of the instruction. It controls the program memory address bus, the data memory address bus, and accesses to the stack. User Guide DS50002751D-page 66 © 2020 Microchip Technology Inc.
  • Page 67 The Data Monitor and Control Interface, or DMCI, is a tool in MPLAB X IDE. The interface provides dynamic input control of application variables in projects. Application-generated data can be viewed graphically using any of 4 dynamically-assignable graph windows. User Guide DS50002751D-page 67 © 2020 Microchip Technology Inc.
  • Page 68 The ordering of bytes in a multi-byte object. Environment MPLAB PM3 – A folder containing files on how to program a device. This folder can be transferred to a SD/MMC card. User Guide DS50002751D-page 68 © 2020 Microchip Technology Inc.
  • Page 69 Any external symbol references which do not have a corresponding definition cause a linker error to be reported. External Input Line An external input signal logic probe line (TRIGIN) for setting an event based upon external signals. User Guide DS50002751D-page 69 © 2020 Microchip Technology Inc.
  • Page 70 The base 16 numbering system that uses the digits 0-9 plus the letters A-F (or a-f). The digits A-F represent hexadecimal digits with values of (decimal) 10 to 15. The rightmost digit counts ones, the next counts multiples of 16, then 16 = 256, etc. User Guide DS50002751D-page 70 © 2020 Microchip Technology Inc.
  • Page 71 Routine (ISR) so that the event may be processed. Upon completion of the ISR, normal execution of the application resumes. Interrupt Handler A routine that processes special code when an interrupt occurs. User Guide DS50002751D-page 71 © 2020 Microchip Technology Inc.
  • Page 72 Up to 14 logic probes can be connected to some Microchip emulators. The logic probes provide external trace inputs, trigger output signal, +5V, and a common ground. Loop-Back Test Board Used to test the functionality of the MPLAB REAL ICE in-circuit emulator. User Guide DS50002751D-page 72 © 2020 Microchip Technology Inc.
  • Page 73 Thus, only the on-chip program memory is available in microcontroller mode. Microprocessor Mode One of the possible program memory configurations of PIC18 microcontrollers. In microprocessor mode, the on-chip program memory is not used. The entire program memory is mapped externally. User Guide DS50002751D-page 73 © 2020 Microchip Technology Inc.
  • Page 74 ™ MPASM Assembler ® Microchip Technology’s relocatable macro assembler for PIC microcontroller devices, KeeLoq devices and Microchip memory devices. MPLAB Language Tool for Device Microchip’s C compilers, assemblers and linkers for specified devices. Select the type of language tool based on the device you will be using for your application, e.g., if you will be creating C code on a PIC18 MCU, select the MPLAB...
  • Page 75 When the pass count value reaches zero, the event is satisfied. You can assign the Pass Counter to break and trace logic, and to any sequential event in the complex trigger dialog. User Guide DS50002751D-page 75 © 2020 Microchip Technology Inc.
  • Page 76 Profile For MPLAB SIM simulator, a summary listing of executed stimulus by register. Program Counter The location that contains the address of the instruction that is currently executing. User Guide DS50002751D-page 76 © 2020 Microchip Technology Inc.
  • Page 77 In an in-circuit emulator or debugger, the processor executes in real time until a valid breakpoint causes a halt, or until the user halts the execution. User Guide DS50002751D-page 77 © 2020 Microchip Technology Inc.
  • Page 78 The GCC equivalent of an OCG psect. A block of code or data which is treated as a whole by the linker. Section Attribute A GCC characteristic ascribed to a section (e.g., an access section). User Guide DS50002751D-page 78 © 2020 Microchip Technology Inc.
  • Page 79 The portion of data memory (RAM) dedicated to registers that control I/O processor functions, I/O status, timers or other modes or peripherals. SQTP See Serialized Quick Turn Programming. Stack, Hardware Locations in PIC microcontroller where the return address is stored when a function call is made. User Guide DS50002751D-page 79 © 2020 Microchip Technology Inc.
  • Page 80 Symbols in MPLAB IDE/MPLAB X IDE refer mainly to variable names, function names and assembly labels. The value of a symbol after linking is its value in memory. Symbol, Absolute Description User Guide DS50002751D-page 80 © 2020 Microchip Technology Inc.
  • Page 81 A section which has not been assigned to a specific target memory block in the linker command file. The linker must find a target memory block in which to allocate an unassigned section. Uninitialized Data Data which is defined without an initial value. In C, int myVar; User Guide DS50002751D-page 81 © 2020 Microchip Technology Inc.
  • Page 82 A timer on a PIC microcontroller that resets the processor after a selectable length of time. The WDT is enabled or disabled and set up using Configuration bits. Workbook For MPLAB SIM stimulator, a setup for generation of SCL stimulus. User Guide DS50002751D-page 82 © 2020 Microchip Technology Inc.
  • Page 83: The Microchip Web Site

    Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. User Guide DS50002751D-page 83 © 2020 Microchip Technology Inc.
  • Page 84: Legal Notice

    SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademark of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries.
  • Page 85: Worldwide Sales And Service

    New York, NY Sweden - Stockholm Tel: 631-435-6000 Tel: 46-8-5090-4654 San Jose, CA UK - Wokingham Tel: 408-735-9110 Tel: 44-118-921-5800 Tel: 408-436-4270 Fax: 44-118-921-5820 Canada - Toronto Tel: 905-695-1980 Fax: 905-695-2078 User Guide DS50002751D-page 85 © 2020 Microchip Technology Inc.

Table of Contents

Save PDF