A Guide To PIC Microcontroller Documentation/Documentation structure

< A Guide To PIC Microcontroller Documentation

Controller and Development Tool Documentation structure

Having identified the processor architecture used by the chosen PIC product, it is time to start acquiring (typically downloading) the required documentation. Documentation in this sense is not restricted to the controller device you intend to use, rather it encompasses all documentation needed to develop code, debug code, program the device's memory and layout and design related hardware which are all elements of implementing an emebedded product based upon a specific controller. The main documentation groups can thus be defined as:

In this section, the first three points will be examined in more detail.

Depending on how development activities are split, a single developer may be responsible for all stages of the design process from conception through to manufacture, whilst others may only be responsible for a small part of the design process. In either case, it is highly recommended to gather all the relevant documentation and at least peruse those documents which are not so pertinent to one's own role in the design flow in case something from an earlier or later stage in the design process has an influence on the aspect of development for which one is responsible.

For example, to discover during the first production run that a controller pin needed for programming is used by another feature which could have been easily connected to another, perhaps unused, pin will typically require an expensive hardware redesign and delays the products launch.

TIP! - Preparation is everything, and well thought-through decisions, and even corrections, made early on in the design cycle save exponential sums of money, as well as time, compared to resolving them later on!

Microcontroller and DSC Documentation

Documentation for microcontroller and DSC products can be broken down into three core document types:

Other documents that can be downloaded on an "as needs" basis include:

Not strictly documentation, but definitely something helpful during the design and manufacturing process, are the following electronic files which are sometimes available:

Programming language documentation

Developing software for PIC controllers can be undertaken using one of two programming languages using the tools available from Microchip; assembler or C. These and other programming languages are also offered from third-parties or supported through open-source projects. The software package supporting a specific programming language is typically called a "toolsuite" or "tool-chain", depending on the document being read, as it contains not one but a multitude of software programs which can convert source code into binary code and the other files typically used during software development on the target controller.

The tools and their documentation are family specific and are discussed in the relevant family specific chapters.

Integrated Development Environment (IDE) documentation

Although it is possible to develop software for applications without resorting to an IDE, medium to large size projects quickly benefit from the structure and features an IDE provides, allowing project based settings to be set using a visual environment and binary code to be generated without resorting to command-line calls or writing batch or make files. On the downside, obviously there are a lot of settings to be tackled to create the first project and, as with any new software, it is difficult to know in the first instance where to "click", what to select, and what to enter in all the boxes.

Microchip offers their own IDE, called MPLAB®[1], which can be used for code development on all of their controller products and be used with all of their current development tools. In order to get over the initial hurdle, the first documentation point is the "MPLAB® IDE Quick Start Guide", document DS51281[2].

Once the first few test projects have been tackled, the "MPLAB® IDE User's Guide" should be referred to for further in depth information on features and functions in the IDE (document DS51519[3]).

With MPLAB® itself there are also numerous compiler HTML help files containing, amongst other things, tutorials. Like all help files the key is to knowing which terms to search for, which itself is sometimes an art in its own right.

Since MPLAB® is controller product independent the documentation of this software is not be discussed in the device family specific chapters.

TIP! - You can search for the file names noted here (e.g. DS51281) either on the Microchip website or on Google. However note that the filenames will also include a postfix letter denoting the revision of the document which starts with the letter "A" when you find them (e.g. DS51281F).

References

  1. http://www.microchip.com/mplab
  2. http://search.microchip.com/searchapp/searchhome.aspx?id=2&q=DS51281
  3. http://search.microchip.com/searchapp/searchhome.aspx?id=2&q=DS51519
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.