PIC Development Tools Detailed Description

Publisher:光子梦境Latest update time:2019-11-28 Source: eefocusKeywords:PIC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

PIC Development Tools Detailed Description

                                 PIC microcontroller system architecture:

  The system architecture is shown in the figure above. There are two main modules: PC and data acquisition system development board. These two modules are connected by two main lines: one is the connection between PC and system development board through PICkit™ 3; the other is the connection between PC and system development board through USB cable to realize USB communication. 

 Mplab IDE 

  For PIC microcontrollers, Microchip provides the free Mplab integrated development environment, which supports both assembly and C languages. In addition, Hi-tech, CCS, IAR, Bytecraft, etc. also provide third-party C compiler support. 


  MPLAB IDE is a software that runs on a PC and is used to develop applications for Microchip microcontrollers. Because it provides a single integrated environment to develop program code for embedded microcontrollers, it is called an integrated development environment or IDE. The installation package can be downloaded from the MSI website (www.mirochip.com). In this design, the latest version 8.66 is selected. Maplab includes all components for designing and deploying embedded system applications. All work is mainly managed by projects. The built-in components mainly include project managers, editors, assemblers/connectors, language tools, debuggers, etc. 


A complete Mplab IDE project development mainly includes seven steps: writing source code, creating projects, compiling projects, running simulators, debugging applications, setting configuration bits, and burning chips. 


1) During the project creation process, you can directly use the project wizard. Select Project>Project Wizard to start the project wizard. When the welcome screen appears, click the Next button to continue. 

2) Select the corresponding PIC microcontroller in the Device drop-down list. Click Next. 

3) Confirm the Microchip toolkit and its path. If the path is incorrect or blank, click the Browse button to specify the installation location of the toolkit. Select the Next button to proceed to the next step. 

4) Enter the name of the project, then click the Browse button to place the project in a folder. Click the Next button. 

5) A prompt box appears asking you to add existing source files to the project. Add the required source files and header files, etc. If not required, select Continue to the next step. 

6) The Summary dialog box of the Project Wizard is displayed. Review the information in this final dialog box to verify that the project has been created correctly. Click OK to complete the project creation. 

7) Create source code through File/New and save it to the folder where the project is located. Right-click in the project list and choose to add corresponding source files and header files, etc. 

8) Select Project>Build All to compile the project. If the file is successfully compiled, "BUILD SUCCEESSED" will appear in the output window. If it is not successful, return to modify the source program and continue compiling. For the project, you can choose to run the simulator and debug the application to check and modify the source file. 

9) Set the configuration bits accordingly. To set the configuration bits, select Configure>Configuration Bits. If some devices or programs have special requirements for configuration bits, you must set the configuration bits directly in the source program. 

10) Use a programmer supported by Mplab. Run Configure/select Device and select the target chip to be programmed. For example, if you select PIC18F4550 here, you can see that Maplab supports programming with PICkit™ 3 (green means supported, red means not supported yet). 

11) Before programming the chip, connect the PIC microcontroller to the computer through the programming tool, and select the programmer to be used in Programmer> Select Programmer. If the connection is correct, Mplab will automatically connect to the programming tool and prompt that the connection is successful. 

12) Click Programmer>Program to program the information currently loaded in MPLAB IDE into the chip. The status bar will display the progress of the program. Select the Output window under the "programmer" tab to display the results of the program. For example, for PICkit™ 3:

Programming……

Programming/ Successful!

After programming the chip, MPLAB IDE will automatically verify it. Click Programmer>Verify to verify whether the chip is programmed correctly.


PICkit™3

  PICkit™3 is a programmer/debugger supported by MPLAB IDE (v8.20 or higher) software. It is easy to operate, low cost, and can easily download, burn and debug programs online.


PICkit™3 is an enhanced in-circuit serial programming system based on In-Circuit Serial Programming™ (ICSP™) with a two-wire serial interface for Microchip PIC® microcontrollers (MCUs) and dsPIC® digital signal controllers (DSCs). In addition to the debugger function, the PICkit 3 programmer/debugger system can also be used as a development programmer, supporting the entire development process from software development to hardware integration.


  Since the debugger system uses a device with built-in emulation circuitry for emulation, the code is executed in a manner similar to that of an actual device. The user can interactively access all available features of a given device and can set and modify these features through the MPLAB IDE interface. The PICkit 3 debugger was developed for emulating embedded processors with debugging capabilities.


PICkit 3 features include:

1) Full-speed USB support using Windows standard drivers;

2) Real-time execution;

3) The processor runs at maximum speed;

4) Built-in overvoltage/short-circuit monitor;

5) Low voltage less than or equal to 5V (range 1.8-5V);

6) Diagnostic LEDs (power, activity and status);

7) Can read and write the program memory and data memory of the microcontroller;

8) All memory types (EEPROM, ID, configuration and program) can be erased with verification function;

9) Freeze peripherals at breakpoints.

The Status LED indicates the operating status of the PICkit 3 as follows:

1) Power (Green) – The PICkit 3 is powered via the USB port.

2) Active (Blue) – The PICkit 3 is connected to the PC USB port and the communication link is active.

3) Status: Busy (yellow) – PICkit 3 is busy processing a function, such as programming;

ERROR (RED) – The PICkit 3 has encountered an error.

  The pins of the ICSP interface of PICkit™ 3 are shown in the figure. Pin 1 is connected to the VDD of the target device, pin 2 is connected to the ground VSS of the target board, pin 4 is the programming data line, pin 5 provides the programming clock line, and pin 6 can be left floating. In addition, PICkit™ 3 can provide working power for the PIC microcontroller through pins 2 and 3, but it must be set in Programmer/setting…/power.


The online debugging functions supported by PICkit 3 for PIC microcontrollers include: resetting application programs, running and pausing, single-stepping, continuous single-stepping, full-speed simulation, hardware breakpoints, peripheral freezing, etc.

Keywords:PIC Reference address:PIC Development Tools Detailed Description

Previous article:PIC16F877A Watchdog Timer (WDT)
Next article:PIC33 MCU interrupt service function writing method (other MCUs are also applicable)

Recommended ReadingLatest update time:2024-11-16 11:53

Design of a new LED dot matrix display control system based on PIC32 microcontroller
  Background of the project:   LED dot matrix display is a large display system that integrates microelectronics technology, computer technology, and information processing technology. It has become an ideal choice for many display media and outdoor operation displays due to its bright colors, wide dynamic range, hi
[Power Management]
PIC microcontroller (PIC16F877A) serial transceiver program
#include pic.h   #define uchar unsigned char    float rtemp,sflag;   void SerialInit(void)   {       TXSTA=0x24; //Turn on the transmit enable bit and high baud rate. The initial value of TRMT can be 0 or 1.       RCSTA=0x90; //Open the serial port, continuous receiving,       SPBRG=0x19; //4M crystal oscillator, baud
[Microcontroller]
PIC microcontroller (PIC16F877A) serial transceiver program
Design and implementation of wireless real-time monitoring and anti-theft system based on PIC microcontroller
1. Main text Preface The production of this product took more than three months. During these three months, our group has been immersed in the laboratory except for class time. Even during the Chinese New Year, our group did not stay at home for a few days and rushed to school without stopping. During this period, w
[Microcontroller]
Design and implementation of wireless real-time monitoring and anti-theft system based on PIC microcontroller
PIC Microcontroller Getting Started Tutorial (Part 3) - Installing the Compiler (MPLAB XC Compilers)
1. Download the compiler (MPLAB XC Compilers) XC8, XC16 and XC32 correspond to 8-bit, 16-bit and 32-bit PIC microcontrollers. You can download the latest version according to the microcontroller you actually use. As of 2018-06-10, the latest compiler versions are: XC8——v1.45, XC16——v1.34, XC32——v2.10. Official
[Microcontroller]
PIC Microcontroller Getting Started Tutorial (Part 3) - Installing the Compiler (MPLAB XC Compilers)
mickoC writes pic18f45k22 to read i2c interface RTC pcf8583 time display on digital tube
The microcontroller source program is as follows: /* * Project name:      Seven Segment Display (The 'Hello World' example for the Seven Segment Display) * Copyright:      (c) Microelectronics, 2011. * Revision History:      20110929:        - initial release (FJ); * Description:      This code demonstrates how to di
[Microcontroller]
mickoC writes pic18f45k22 to read i2c interface RTC pcf8583 time display on digital tube
Getting Started with the PIC24HJ Family: Configuration Bits and Clock Configuration
1. Download MPLAB X IDE   Download the MPLAB x IDE for the corresponding system from the MPLAB x official website and install it. If you use C language editing, you also need to install the corresponding xc compiler editor. The author uses pic24hj256GP206A, so he uses xc16 or c30. 2. Introduction to MPLAB X Operatio
[Microcontroller]
Getting Started with the PIC24HJ Family: Configuration Bits and Clock Configuration
PIC microcontroller common instructions introduction and instruction function classification table
  The source program is mainly written with these basic instructions to achieve your control tasks. However, in order to increase the readability and maintainability of the source program, we introduce the concept of pseudo-instructions. Pseudo-instructions themselves do not generate executable assembly instructions,
[Microcontroller]
Microchip Releases Secure Application Designs for dsPIC®, PIC18® and AVR® MCUs
Microchip Releases New ISO 26262 Functional Safety Package for dsPIC®, PIC18® and AVR® MCUs to Simplify Design of ASIL B and ASIL C Safety Applications Microchip’s certified functional safety solutions accelerate development and certification of automotive safety applications To
[Automotive Electronics]
Microchip Releases Secure Application Designs for dsPIC®, PIC18® and AVR® MCUs
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号