Chapter 3

Using Eight Outputs

FLASHING 8 LEDs.

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

Consider the circuit as shown in Figure 3.1.

image

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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.