Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

AN1799 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN1799
Description  STR71x GPIO SCANNING A 4x4 MATRIX KEYPAD
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1799 Datasheet(HTML) 4 Page - STMicroelectronics

  AN1799 Datasheet HTML 1Page - STMicroelectronics AN1799 Datasheet HTML 2Page - STMicroelectronics AN1799 Datasheet HTML 3Page - STMicroelectronics AN1799 Datasheet HTML 4Page - STMicroelectronics AN1799 Datasheet HTML 5Page - STMicroelectronics AN1799 Datasheet HTML 6Page - STMicroelectronics AN1799 Datasheet HTML 7Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 4 / 7 page
background image
4/7
STR71x GPIO SCANNING A 4x4 MATRIX KEYPAD
3 SOFTWARE
3.1 KEYPAD
The keypad used is a 4x4 matrixed keypad. Rows are connected to the P2.8-11 pins config-
ured as Input Pull Up /Pull Down Weak Push-Pull mode and pulled low through pull-down re-
sistors. Columns are connected to the P1.8-11 pins configured as Output Push-Pull.
Biasing is achieved by setting high (3.3 V) each row for 5 ms duration every 20 ms. This gives
an update rate of 50 Hz. The 5 ms time-base can be generated using a timer overflow inter-
rupt.
When a key is pressed, a rising edge is applied to the row the key belong. The MCU executes
the XTI IRQ handler routine and decodes the pressed key (Table 1).
The keypad is coded as follows:
Table 1. Key codes
Key
Row value
Column value
Key Code
0
0x0800
0x0400
0x84
1
0x0100
0x0800
0x18
2
0x0100
0x0400
0x14
3
0x0100
0x0200
0x12
4
0x0200
0x0800
0x28
5
0x0200
0x0400
0x24
6
0x0200
0x0200
0x22
7
0x0400
0x0800
0x48
8
0x0400
0x0400
0x44
9
0x0400
0x0200
0x42
A
0x0100
0x0100
0x11
B
0x0200
0x0100
0x21
C
0x0400
0x0100
0x41
D
0x0800
0x0100
0x81
E
0x0800
0x0800
0x88
F
0x0800
0x0200
0x82



Html Pages

1 2 3 4 5 6 7


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com