Conclusion

The main purpose of this technical brief is to introduce the user to a preferred coding style for programming the PIC microcontrollers. After reviewing this document, users will understand the type of information the data sheet is providing, macro definitions, variable declarations and data type definitions provided by the header files. The goals are to use an easily maintainable, portable and readable coding style; to become familiar with the naming conventions for the PIC registers and bits; and to prepare for further steps in developing a project using these microcontrollers.

This document provides information on specific data sheets, naming conventions, guidance on how to write C-code for PIC microcontrollers and further steps in developing a project.

While the C-code writing methods suggested here are not mandatory, one can consider the numerous advantages. The larger the project and the more features the device has, the greater the benefit of C-code utilization.