数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN1799 数据表(PDF) 4 Page - STMicroelectronics

部件名 AN1799
功能描述  STR71x GPIO SCANNING A 4x4 MATRIX KEYPAD
PDF  7 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN1799 数据表(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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
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