Chapter 2

First C Program

In order to program the microcontroller we are going to:

ent Write the code in C.

ent Convert the code to a hex file using a compiler.

ent Program the hex file into the microcontroller.

The code which we are going to write in the C language can be written on any text editor such as WORD. Any suitable C compiler can be used to convert the code to a hex file and there are numerous programmers on the market that will blow your hex file ...

Get PIC Projects and Applications using C now with the O’Reilly learning platform.

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