Chapter 3

Using Eight Outputs


For this program we are going to flash all eight outputs on PORTB.

Consider the circuit as shown in Figure 3.1.


Figure 3.1 Eight outputs on PORTB.

In order to achieve our objective we will be using the following steps:

ent Open MPLAB.

ent Create the C file (see Figure 2.3). Call it flash8.c.

ent Create a project ...

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.