Chapter 4

Input and Output

The simplest input is a switch, with an array of switches forming a numerical keypad input. Timers and interrupts are often used in input processing, such as debouncing. An LED is a simple output indicator, which can be used in a seven-segment display to provide a simple character display. The LCD provides a more versatile alphanumeric output.

Keywords

Switch input; switch interface; LED interface; LED seven-segment display; Liquid Crystal Display (LCD); ASCII codes

Summary

• A simple switch sometimes needs debouncing for correct operation

• Debouncing can be implemented in software or hardware

• The hardware timer and interrupts are often used in input processing

• LEDs can be used as simple indicators or numeric displays ...

Get Interfacing PIC Microcontrollers, 2nd Edition 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.