I/O devices (input and output devices) are essential components of microcontroller-based systems. The PIC18F microcontroller communicates with five I/O ports, PORT A through PORT E. Each I/O port is associated with the special function registers (SFR) to set up different functions. Common output devices and switches are LEDs, LCD, and seven-segment LED displays. Keypad matrixes are the common input devices for PIC18.
The figure shown above is a seven-segment display. A seven-segment display is another type of I/O port output module. It is a group of 7 LEDs (segments) physically built up in the form of the number 8 and a decimal point, as illustrated in Figure 1. It is used to show decimal numbers 0 through 9 and alpha characters A through F.
In this activity, you will be designing a program to display “E307” using four seven-segment displays in PIC18 Simulator.
As you prepare your report, be sure to use the following format:
- Cover Page
- Table of Contents
- Problem Statement
- Theoretical Analysis (flow chart, manual calculation result)
- Source Code
- PIC18 IDE Simulation
- Simulation Results and Discussion
Compose your work using a word processor