Skip to content

How to Use PICkit 3 Programmer/Debugger (Review & Guide)

The PICkit 3 is a versatile and powerful programmer/debugger tool designed by Microchip Technology for their PIC microcontrollers. It is a popular choice among hobbyists, students, and professionals alike for its ease of use, affordability, and robust feature set. In this comprehensive guide, we will explore the ins and outs of the PICkit 3, covering everything from its setup and configuration to its advanced debugging capabilities. Whether you’re a beginner or an experienced developer, this article will equip you with the knowledge and skills to effectively utilize the PICkit 3 for your PIC microcontroller projects.

Setting Up the PICkit 3

Before diving into the features and functionalities of the PICkit 3, it’s essential to properly set up the hardware and software components. Here’s a step-by-step guide to getting started:

  1. Hardware Connection
    • Connect the PICkit 3 to your computer using the provided USB cable.
    • Ensure that the target PIC microcontroller is properly connected to the PICkit 3 using the appropriate interface (ICSP, JTAG, etc.).
  2. Software Installation
    • Download and install the latest version of the MPLAB X Integrated Development Environment (IDE) from the Microchip website.
    • During the installation process, select the option to install the PICkit 3 drivers and programmer support.
  3. Driver Installation (if necessary)
    • If the PICkit 3 drivers are not automatically installed during the MPLAB X installation, you can manually install them by following these steps:
      • Navigate to the “Drivers” folder within the MPLAB X installation directory.
      • Run the appropriate driver installer (e.g., pic32mx_x.xx.xx.xx.exe for 32-bit PIC microcontrollers or pic32mx_x64_x.xx.xx.xx.exe for 64-bit PIC microcontrollers).
      • Follow the on-screen instructions to complete the driver installation.

Configuring the PICkit 3 in MPLAB X

Once the hardware and software components are set up, you can configure the PICkit 3 within the MPLAB X IDE:

  1. Launch MPLAB X and create a new project or open an existing one.
  2. In the MPLAB X menu, go to “File” > “Project Properties” (or press Alt + F7).
  3. In the “Project Properties” window, navigate to the “PICkit 3” category.
  4. Select the appropriate settings for your specific PIC microcontroller, such as the communication interface (ICSP, JTAG, etc.), voltage levels, and oscillator settings.
  5. Click “OK” to save the configuration settings.

Programming and Debugging with PICkit 3

With the PICkit 3 properly configured, you can now utilize its various features for programming and debugging your PIC microcontroller projects. Here are some common use cases:

Programming

  1. Build your project in MPLAB X by clicking the “Make and Program Device” button (or press F11).
  2. In the “Operation” dialog, select the appropriate programming options, such as “Program” or “Program and Verify”.
  3. Click the “Program” button to initiate the programming process.
  4. The PICkit 3 will program the compiled HEX file onto the target PIC microcontroller.

Debugging

  1. Set breakpoints in your code by clicking on the left margin of the editor window in MPLAB X.
  2. Click the “Debug Project” button (or press F5) to start the debugging session.
  3. The PICkit 3 will halt the execution of the target PIC microcontroller at the first breakpoint encountered.
  4. Use the debugging tools in MPLAB X to step through your code, inspect variables, and monitor the program’s execution.
  5. When finished, click the “Finish Debugger Session” button to end the debugging session.

Advanced Features

The PICkit 3 offers several advanced features that can streamline your development workflow and provide deeper insights into your PIC microcontroller projects. Here are some notable features:

Real-Time Execution Tracing

The PICkit 3 supports real-time execution tracing, which allows you to monitor and analyze the program flow and variable changes as the code executes on the target PIC microcontroller. This feature can be invaluable for debugging complex applications and identifying timing-related issues.

Firmware Upgrades

Microchip periodically releases firmware updates for the PICkit 3, which can introduce new features, bug fixes, and improved compatibility with newer PIC microcontrollers. You can upgrade the PICkit 3 firmware by following the instructions provided by Microchip in the firmware release notes.

Power Monitoring and Control

The PICkit 3 includes power monitoring and control capabilities, allowing you to monitor the target PIC microcontroller’s power consumption and adjust the voltage levels during debugging. This feature can be particularly useful when optimizing power-sensitive applications or troubleshooting power-related issues.

Frequently Asked Questions (FAQ)

  1. Can the PICkit 3 be used with all PIC microcontrollers? The PICkit 3 is compatible with a wide range of PIC microcontrollers, including PIC18, PIC24, and PIC32 families. However, it’s essential to check the specific microcontroller’s compatibility with the PICkit 3 before attempting to program or debug.
  2. What are the minimum system requirements for using the PICkit 3? The PICkit 3 requires a computer with a USB port and the ability to run the MPLAB X IDE. The specific system requirements may vary depending on the operating system and the version of MPLAB X being used.
  3. Can the PICkit 3 be used with third-party development tools or IDEs? While the PICkit 3 is primarily designed to work with Microchip’s MPLAB X IDE, it can also be used with other third-party development tools and IDEs that support the PICkit 3 programmer/debugger.
  4. How can I troubleshoot issues with the PICkit 3? If you encounter any issues with the PICkit 3, start by checking the hardware connections and ensuring that the drivers are properly installed. Additionally, consult the PICkit 3 user guide and Microchip’s support resources for troubleshooting tips and common solutions.
  5. Can the PICkit 3 be used for production programming? While the PICkit 3 is primarily designed for development and debugging purposes, it can also be used for limited production programming. However, for larger-scale production runs, Microchip recommends using their dedicated production programmers, such as the PICkit 4 or PICkit 4 Max.

Conclusion

The PICkit 3 is a versatile and powerful tool that can significantly enhance your PIC microcontroller development experience. By following the guidelines outlined in this article, you can effectively set up, configure, and utilize the PICkit 3 for programming and debugging your projects. Whether you’re a beginner or an experienced developer, the PICkit 3 offers a range of features and capabilities to streamline your workflow and ensure efficient and effective project development.

Remember to regularly check for updates and additional resources from Microchip to stay up-to-date with the latest features and improvements for the PICkit 3. Happy coding!

 

 

 

                Get Fast Quote Now