Os motores de busca de Datasheet de Componentes eletrônicos
  Portuguese  ▼
ALLDATASHEETPT.COM

X  

AT89C5132-ROTUL Folha de dados(PDF) 152 Page - ATMEL Corporation

Nome de Peças AT89C5132-ROTUL
Descrição Electrónicos  USB Microcontroller with 64K Bytes Flash Memory
PDF  181 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrônico  ATMEL [ATMEL Corporation]
Página de início  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT89C5132-ROTUL Folha de dados(HTML) 152 Page - ATMEL Corporation

Back Button AT89C5132-ROTUL Datasheet HTML 148Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 149Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 150Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 151Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 152Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 153Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 154Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 155Page - ATMEL Corporation AT89C5132-ROTUL Datasheet HTML 156Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 152 / 181 page
background image
152
4173D–USB–02/06
AT89C5132
22. Keyboard Interface
The AT89C5132 implements a keyboard interface allowing the connection of a 4 x n matrix key-
board. It is based on 4 inputs with programmable interrupt capability on both high or low level.
These inputs are available as alternate function of P1.3:0 and allow exit from idle and power
down modes.
22.1
Description
The keyboard interfaces with the C51 core through two special function registers: KBCON, the
keyboard control register (see Table 101); and KBSTA, the keyboard control and status register
(see Table 102).
The keyboard inputs are considered as 4 independent interrupt sources sharing the same inter-
rupt vector. An interrupt enable bit (EKB in IEN1 register) allows global enable or disable of the
keyboard interrupt (see Figure 22-1). As detailed in Figure 22-2 each keyboard input has the
capability to detect a programmable level according to KINL3:0 bit value in KBCON register.
Level detection is then reported in interrupt flags KINF3:0 in KBSTA register.
Any of the KINF3:0 flags can trigger a keyboard interrupt. To do so, corresponding mask bits
KINM3:0 in KBCON register must be cleared. The keyboard interrupt service routine is executed
each time an unmasked KINFx flag is set. The interrupt must be acknowledged by reading
KBSTA which automatically clears KINF3:0 flags.
This structure allows keyboard arrangement from 1 by n to 4 by n matrix and allow usage of KIN
inputs for any other purposes.
Figure 22-1. Keyboard Interface Block Diagram
Figure 22-2. Keyboard Input Circuitry
22.1.1
Power Reduction Mode
KIN3:0 inputs allow exit from idle and power down modes as detailed in Section “Power Man-
agement”, page 44. To enable this feature, KPDE bit in KBSTA register must be set to logic 1.
Due to the asynchronous keypad detection in power down mode (all clocks are stopped), exit
may happen on parasitic key press. In this case, no key is detected and software must enter
power-down again.
22.2
Registers
Table 101. KBCON Register
KIN0
Keyboard Interface
Interrupt Request
EKB
IEN1.4
Input Circuitry
KIN1
Input Circuitry
KIN2
Input Circuitry
KIN3
Input Circuitry
KIN3:0
KINM3:0
KBCON.3:0
KINF3:0
KBSTA.3:0
KINL3:0
KBCON.7:4
0
1



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Folha de dados Download

Go To PDF Page


Ligação URL



ALLDATASHEET é útil para você?  [ DONATE ] 

Sobre Alldatasheet   |   Publicidade   |   Contato conosco   |   Privacy Policy   |   Link para a ficha técnica    |   roca de Link   |   Lista de Fabricantes
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