© Armstrong Subero 2018
Armstrong SuberoProgramming PIC Microcontrollers with XC8https://doi.org/10.1007/978-1-4842-3273-6_6

6. Input and Output

Armstrong Subero
(1)
Moruga, Trinidad and Tobago
 

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 ...

Get Programming PIC Microcontrollers with XC8 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.