Chapter 2

PIC Programming

The PIC application development system consists of a source code editor, assembler program to convert it to machine code, simulator to test it in software and a downloading utility to transfer the machine code to the MCU. The source code is written using the instruction mnemonics provided in the instruction set and saved as a text file. A configuration code is needed at the top of the user program to initialise the MCU clock type, start-up timers, reset options and memory protection. Assembler directives are used to improve the effectiveness of the programming method, but are not translated into machine code. A suitable program design technique is useful in creating the overall program structure. ‘C“ programming is more ...

Get Interfacing PIC Microcontrollers, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.