Skip to Content
Interfacing PIC Microcontrollers
book

Interfacing PIC Microcontrollers

by Martin P. Bates
April 2011
Intermediate to advanced
312 pages
9h 32m
English
Newnes
Content preview from Interfacing PIC Microcontrollers
6
CALCULATE, COMPARE & CAPTURE
In this chapter, applications will be described which illustrate the use of the
keypad, LCD display and hardware timers as well as some of the virtual in-
struments available for simulated circuit operation.
Calculator
The circuit for a calculator which will perform simple arithmetic operations in
the 16F877 MCU, using a calculator keypad and 162 LCD display, is shown
in Figure 6.1.
The keypad has 16 keys: 10 numeric buttons, 4 arithmetic operations, equals
and clear. The results obtained are displayed on the first line of the LCD
display, which receives the characters as ASCII codes in 4-bit mode (see
Chapter 4). To keep ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interfacing PIC Microcontrollers, 2nd Edition

Interfacing PIC Microcontrollers, 2nd Edition

Martin P. Bates

Publisher Resources

ISBN: 9780750680288