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
Keypad Input
A keypad is simply an array of push buttons connected in rows and columns,
so that each can be tested for closure with the minimum number of connections
(Figure 4.5). There are 12 keys on a phone type pad (0–9, #, ), arranged in a
34 matrix. The columns are labelled 1, 2, 3 and the rows A, B, C, D. If we
assume that all the rows and columns are initially high, a keystroke can be de-
tected by setting each row low in turn and checking each column for a zero.
In the KEYPAD circuit in Figure 4.6, the 7 keypad pins are connected to Port
D. Bits 4–7 are initialised as outputs, and bits 0–2 used as inputs. These input
pins are pulled high to ...
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