PIC microcontroller development tools

Source: Internet
Author: User
Tags mplab
Mplab Introduction

The mplab integrated development environment (IDE) is a comprehensive Editor, Project Manager, and design platform. It provides the following functions: Create and edit using a built-in editor.Source code, Compilation, compilation, and link SourceCodeBy using a built-in software simulatorProgramProcess, or use the online simulator or the online debugger to observe the program process in real time to debug the executable logic, use the software simulator or the simulator for timing measurement, and view the variables in the watch window, use the device programmer to burn the firmware into the device. The software can be downloaded from the official website of microchip for free. When using the software, pay attention to the following menu items: online debugging, power supply options, chip model selection, and MCU configuration bit settings.

Compiler mc18

Mplab C18 is an independent and optimized ansic compiler for pic18 series single-chip microcomputer. This compiler is a 32-bit Windows platform application provided by Microchip. It is fully compatible with mplab IDE and allows Debugging Using online simulators and online debugger. The default installation directory is c: \ mcc18. After the installation is complete, open the language tool mounting Settings dialog box. You can also see the interface shown in 4.

When using mmc18 programming, you must add the connector script file (*. LKR) and header file (*. h) at the same time ). The connector script file mainly provides the storage space available for the connector and how to use the space, which accurately reflects the storage resources and ing structure of the target microcontroller.

Pickit3 Tool

Pickit3 is a Programmer/debugger supported by mplab IDE (v8.20 or later) software. It is easy to operate and has a low cost, allowing you to easily download programs and perform online debugging. Pickit3 is an enhanced online serial programming microchip PIC microcontroller (MCU) based on in-circuit serial programming (icsp) and dual-line serial interfaces) and dspic digital signal controller (DSC ). 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. Because the debugger system uses a device with a built-in Simulation Circuit for simulation, the code execution method is similar to that of the actual device. Users can access all available features of a given device interactively and set and modify these features through the mplab ide interface. The pickit 3 debugger is developed to simulate embedded processors with debugging functions.

Implementation of Online serial programming (icsp)

Icsp (in-circuit serial programming) is online serial programming. By keeping rb6 and rb7 pins low, VDD is the programming voltage, and mclr (VPP) when the pin voltage increases from drop to vihh, the device enters the programming/validation mode. In this case, rb6 is the programming clock line and rb7 is the programming data line. In this mode, rb6 and rb7 are both Schmidt trigger inputs. When rb7 drives data, it is a CMOS output driver.

After resetting, in order to enable the device to enter the programming/Verification Mode, the program counter (PC) points to the 00h address. Then a six-bit command can be sent to the device. according to whether the command is loaded or read, 14-bit programming data will be provided to the device or read from the device. However, in online serial programming mode, the watchdog timer circuit cannot generate device reset.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.