Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

AN980 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN980
Description  ST7 KEYPAD DECODING TECHNIQUES
PDF  8 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN980 Datasheet(HTML) 4 Page - STMicroelectronics

  AN980 Datasheet HTML 1Page - STMicroelectronics AN980 Datasheet HTML 2Page - STMicroelectronics AN980 Datasheet HTML 3Page - STMicroelectronics AN980 Datasheet HTML 4Page - STMicroelectronics AN980 Datasheet HTML 5Page - STMicroelectronics AN980 Datasheet HTML 6Page - STMicroelectronics AN980 Datasheet HTML 7Page - STMicroelectronics AN980 Datasheet HTML 8Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 4 / 8 page
background image
4/8
ST7 KEYPAD DECODING TECHNIQUES, IMPLEMENTING WAKE-UP ON KEYSTROKE
3 EXTERNAL INTERRUPTS
The MCU is in HALT mode. When a key is pressed, a low level is applied to the pin corre-
sponding to the row the key belongs (pins configured as inputs with pull-up). It’s a falling edge
applied to a pin of Port C which creates an external interrupt (EI1) and wakes up the MCU. The
MCU executes then the external interrupt subroutine (decoding the pressed key) and comes
back to its previous state (HALT state in the main program).
4 KEYPAD
The keypad used is a 4x4 matrixed keypad. Rows are connected to pins configured as inputs
with pull-up. So the initial state of these pins are a high level (1). When a key is pressed, a low
level is applied to the corresponding pin. For this reason, the keypad is coded as follows:
Table 1. Key values
KEY
row
value
column
value
KEY
row
value
column
value
1
0x0E
0x0E
7
0x0B
0x0E
2
0x0E
0x0D
8
0x0B
0x0D
3
0x0E
0x0B
9
0x0B
0x0B
F
0x0E
0x07
D
0x0B
0x07
4
0x0D
0x0E
A
0x07
0x0E
5
0x0D
0x0D
0
0x07
0x0D
6
0x0D
0x0B
B
0x07
0x0B
E
0x0D
0x07
C
0x07
0x07
12
3
F
45
6
E
7
8
9
D
A
0
B
C
PC0
PC1
PC2
PC3
PA0
PA1
PA2
PA3



Html Pages

1 2 3 4 5 6 7 8


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