Let’s Begin I/O
In the last chapter, we looked at the peripherals available to users of PIC® microcontrollers. One of the things we saw on the block diagram were the ports. As was described, the ports are registers that provide access to the pins of the microcontroller. The ports on the PIC16F1717 can be used for input or output and can provide access to the many peripherals onboard the microcontroller. In this chapter, we discuss input and output, also written as I/O. We use I/O to interface to LEDs, switches, and seven segment displays.
Before we look at ...