Electronic Components Datasheet Search
  English  ▼

X  

LM8330 Datasheet(PDF) 13 Page - Texas Instruments

Part # LM8330
Description  LM8330 I2C-Compatible Keypad Controller with GPIO, PWM, and IEC61000 ESD Protection
PDF  54 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TI2 [Texas Instruments]
Direct Link  https://www.ti.com
Logo TI2 - Texas Instruments

LM8330 Datasheet(HTML) 13 Page - Texas Instruments

Back Button LM8330 Datasheet HTML 9Page - Texas Instruments LM8330 Datasheet HTML 10Page - Texas Instruments LM8330 Datasheet HTML 11Page - Texas Instruments LM8330 Datasheet HTML 12Page - Texas Instruments LM8330 Datasheet HTML 13Page - Texas Instruments LM8330 Datasheet HTML 14Page - Texas Instruments LM8330 Datasheet HTML 15Page - Texas Instruments LM8330 Datasheet HTML 16Page - Texas Instruments LM8330 Datasheet HTML 17Page - Texas Instruments Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 54 page
background image
LM8330
www.ti.com
SNVS839A – JUNE 2012 – REVISED MARCH 2013
KEYSCAN PROCESS
The LM8330 keyscan functionality is based on a specific scanning procedure performed in a 4ms interval. On
each scan all assigned key matrix pins are evaluated for state changes.
In case a key event has been identified, the event is stored in the key event FIFO, accessible via the EVTCODE
register. A key event can either be a key press or a key release. In addition, key presses are also stored in the
KBDCODE[3:0] registers. As soon as the EVTCODE FIFO includes a event, the device sets the RAW keyboard
event interrupt REVTINT. The RSINT interrupt is set anytime the keyboard status has changed.
Depending on the interrupt masking for the keyboard events (KBDMSK) and the masked interrupt handling
(KBDMIS), the pin IRQN will follow the IRQST.KBDIRQ status, which is set as soon as one interrupt in KBDRIS
is set.
Figure 5 shows the basic flow of a scanning process and which registers are affected.
Figure 5. Example Keyscan Operation for
1 Key Press and Release
READING KEYSCAN STATUS BY THE HOST
In order to keep track of the keyscan status, the host either needs to regularly poll the IRQST register or needs
to react on the Interrupt signaled by the IRQN pin, in case the ball is configured for interrupt functionality. (See
GPIO FEATURE CONFIGURATION).
Figure 6 gives an example on which registers to read to get the keyboard events from the LM8330 and how they
influence the interrupt event registers. The example is based on the assumption that the LM8330 has indicated
the keyboard event by the IRQN pin.
Since the interrupt pin has various sources, the host first checks the IRQST register for the interrupt source. If
KBDIRQ is set, the host can check the KBDMIS register to define the exact interrupt source. KBDMIS contains
the masked status of KBDRIS and reflects the source for raising the interrupt pin. The interrupt mask is defined
by KBDMSK. The complete status of all pending keyboard interrupts is available in the raw interrupt register
KBDRIS.
After evaluating the interrupt source the host starts reading the EVTCODE or KBDCODE register. In this
example the host first reads the KBDCODE to get possible key press events and afterwards reads the complete
event list by reading the EVTCODE register until all events are captured (0x7F indicates end of buffer).
Reading KBDCODE clears the RSINT interrupt bit if all keyboards events are emptied. In the same way,
REVTINT is cleared in case the EVTCODE FIFO reaches its empty state on read.
Copyright © 2012–2013, Texas Instruments Incorporated
Submit Documentation Feedback
13
Product Folder Links: LM8330



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


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