at85c51snd3b ATMEL Corporation, at85c51snd3b Datasheet - Page 240

no-image

at85c51snd3b

Manufacturer Part Number
at85c51snd3b
Description
Single-chip Digital Audio Decoder - Encoder With Usb 2.0 Interface
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
at85c51snd3b1-7FTUL
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
at85c51snd3b1-RTTUL
Manufacturer:
Atmel
Quantity:
10 000
Keyboard Interface
Description
Power Reduction Modes
240
AT85C51SND3B
The AT85C51SND3B derivatives implement a keyboard interface allowing the connec-
tion of a 4 x n matrix keyboard. 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.
The keyboard interfaces with the C51 core through 2 special function registers: KBCON,
the keyboard control register (see Table 261); and KBSTA, the keyboard control and
status register (see Table 262).
The keyboard inputs are considered as 4 independent interrupt sources sharing the
same interrupt vector. An interrupt enable bit (EKB in IEN1 register) allows global
enable or disable of the keyboard interrupt (see Figure 132). As detailed in Figure 133
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.
A keyboard interrupt is requested each time one of the four flags is set, i.e. the input
level matches the programmed one. Each of these four flags can be masked by soft-
ware using KINM3:0 bits in KBCON register and is cleared by reading KBSTA register.
This structure allows keyboard arrangement from 1 by n to 4 by n matrix and allows
usage of KIN inputs for any other purposes.
Figure 132. Keyboard Interface Block Diagram
Figure 133. Keyboard Input Circuitry
KIN3:0 inputs allow exit from idle and power-down modes as detailed in Section “Power
Reduction Mode”, page 21. To enable power-down mode exit, KPDE bit in KBSTA reg-
ister must be set.
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 returns to power down again.
DCPWR
KIN3
KIN2
KIN1
KIN0
KDCPL
KBSTA.5
KDCPE
KBSTA.6
Input Circuitry
Input Circuitry
Input Circuitry
Input Circuitry
KBCON.7:4
KINL3:0
0
1
KBSTA.3:0
KINF3:0
IEN1.1
EKB
KBCON.3:0
KINM3:0
Keyboard Interface
Interrupt Request
7632C–MP3–11/06

Related parts for at85c51snd3b