LSI/CSI UL LS7222 LSI Computer Systems, Inc. 1235 Walt Whitman Road, Melville, NY 11747 (631) 271-0400 FAX (631) 271-0405 ® A3800 KEYPAD PROGRAMMABLE DIGITAL LOCK December 2002 The LS7222 can be programmed to recognize 3 different codes: one to lock (Arm), one to unlock (Disarm), and one to unlock and trigger an alarm (Duress). Programming is done via the keypad inputs. Any entry from the keypad (when not in the program mode) which does not match one of the 3 programmed codes causes the Tamper output to become active. The monolithic, low power CMOS design of the LS7222 enables it to be designed into typical battery backed-up and automotive type security systems. DETAILED DESCRIPTION: CODES - There are 3 different function codes which the LS7222 can store in memory. Each code consists of a 4digit number which must be entered in exact sequence and before the keypad entry enable time expires. The 3 codes and their functions are explained below. 1. The Arm code, when entered from the keypad, causes the Lock output to latch low and the Arm output to momentarily go high. Whenever power is first applied to the LS7222, the circuit defaults to the Arm code corresponding to the keys X1 Y1, X1 Y2, X2 Y2, X2 Y1. The code can then be altered to any other 4 digit code by entering the Program Mode and keying in the new code. 7222-121102-1 V SS (-V) 1 20 V DD (+V) RC-OSC 2 19 CAP-K X1 3 18 LOCK DISPLAY X2 4 17 X3 5 X4 6 Y1 7 14 ARM Y2 8 13 TAMPER Y3 9 12 CAP-M LS7222 GENERAL DESCRIPTION: The LS7222 is a programmable electronic lock implemented in a monolithic CMOS integrated circuit. The circuit contains all the necessary memory, decoder and control logic to make a programmable "keyless" lock system to control electro-mechanical locks. Input is provided by a matrix keypad whose maximum allowable size is 4 x 4. CONNECTION DIAGRAM -TOP VIEW LSI FEATURES: • Stand alone lock logic • 38416, 4-digit combinations • 3 different user programmable codes • Momentary and static lock control outputs • Internal key debounce circuitry • Tamper detection output • Status outputs • Low current consumption • +4V to +15V operation (VDD -Vss) • LS7222 (DIP), LS7222-S (SOIC)- See Figure 1 Y4 10 LOCK 16 DISARM 15 ALARM 11 PROGRAM FIGURE 1 2. The Disarm code, when entered from the keypad, causes the Lock output to latch high and the Disarm output to momentarily go high. The first 3 digits of the Disarm code must be identical to the first 3 digits of the Arm code; the 4th digit may or may not be identical for the two codes. When the two codes are the same in all 4 digits, i.e. the same code is chosen for arming and disarming, the entry of the code will cause the Lock output to toggle. This means that if the output was high (unlocked) it will go low (locked) and vice-versa. Whenever power is first applied to the LS7222, the circuit defaults to the Disarm code corresponding to the keys X1 Y1, X1 Y2, X2 Y2, X1 Y1. The code can then be altered by entering the Program mode. 3. The Duress code, when entered from the keypad, causes the Lock output to latch high and the Disarm output to momentarily go high; at the same time the Alarm output will latch high to enable an external alarm. The first 3 digits of the Duress code must be identical to the first 3 digits of the Arm and Disarm codes; the 4th digit must be different to activate the Alarm output. Whenever power is first applied to the LS7222, the circuit defaults to the Duress code corresponding to the keys X1 Y1, X1 Y2, X2 Y2, X1 Y2. The code can then be altered the same way as the other two codes. Program Mode - The current Arm/Disarm/Duress codes may be KEYPAD INTERFACE - The four X inputs and four Y outputs are altered to any value by initializing the Program mode. The steps designed for keypad interface (see Fig. 2). Since the X inputs have involved for altering the codes are: internal pull-ups, the maximum matrix size of 4 x 4 does not have to be utilized. Because the Y outputs have open drains, more 1. Enter the current Disarm code causing the Disarm output to than one LS7222 may share the same keypad. go high. During normal operation the LS7222 will scan the matrix looking for 2. Before the keypad entry enable time expires, enter the key a switch closure. Once a closure has been detected, the internal corresponding to matrix position X4 Y1 two times. This will key debounce logic determines if a "valid" key has been pressed or cause the Program Mode output to latch high, indicating that that if noise is just present. Only one valid input will be generated the circuit is now in the Program mode. The keypad entry with any key closure. The use of internal key debouncing and enable timer is disabled during the Program mode. Schmitt triggers on the inputs provides the LS7222 with very high noise immunity. 3. Enter a 6-digit number from the keypad. The Program Mode output will latch low, indicating that the new codes have suc- TAMPER - When a valid key has been detected by the LS7222, cessfully been programmed. Of the 6 digits, the first 4 conthe entry is compared against the appropriate reference in the interstitute the Arm code; the first 3 and the 5th constitute the Dis- nal memory. If the requirements of digit value and code sequential arm code and the first 3 and the 6th constitute the Duress position are not fulfilled, the Tamper output will momentarily go code. If an error is introduced or it is desired to change the high; this indicates that an illegal code entry was attempted. The codes before the 6th digit is typed, enter the key X4 Y3. This keypad entry enable timer and memory pointer will both be reset so will reset the internal memory pointer of the LS7222 and a that entry of the code can be attempted again. new 6-digit number can be entered. PIN 1 FUNCTION Vss 2 RC-OSC TABLE 1. PIN DESCRIPTIONS DESCRIPTION Supply voltage negative. Determines the LS7222's internal clock frequency, which is used for keyboard scanning and debounce. A resistor (to VDD) and a capacitor (to Vss) connected to this input sets the frequency. 3, 4, 5, 6 X1, X2, X3, X4 The four X inputs and four Y outputs are designed to interface to a keypad matrix 7, 8, 9, 10 Y1, Y2, Y3, Y4 whose maximum allowable size is 4 by 4. 11 PROGRAM MODE This output goes high when the program mode is initiated. It resets to a low state after the 6-digit Arm/Disarm/Duress combination code has been programmed. 12 CAP-M A capacitor connected between this input and Vss controls the duration of the Arm, Disarm and Tamper outputs. 13 TAMPER Whenever a key is entered that is not a valid code element, this output goes high for a period determined by the capacitor on the CAP-M input. 14 ARM This output generates an active high output every time the Arm code is entered, irrespective of whether the circuit is currently in the disarm state or not. The duration of this output is determined by the capacitor on the CAP-M input. When the Arm and Disarm codes are identical , this output will occur on every other code entry. 15 ALARM 16 DISARM When the Duress code is entered, this output latches high to enable an external alarm. The Alarm output resets to a low state when the Arm code is entered again. This output generates an active high output every time the Disarm code is entered, irrespective of whether the circuit is currently in the armed state or not. The duration of this output is determined by the capacitor on the CAP-M input. When the Arm and Disarm codes are identical , this output will occur on every other code entry. 17 LOCK When the Disarm code or the Duress code is entered, this output latches high. When the Arm code is entered, the output latches low. If the Disarm or Duress code is entered when the output is already high (i.e. already disarmed), the output remains unaffected. Similarly, if the Arm code is entered when the output is already low (i.e. already armed), it remains unchanged. An exception to this rule is when the Arm and Disarm code identical in all 4 digits. In that situation, the output will toggle every time the code is entered. 18 LOCK STATUS Functionally, this output is identical to the LOCK output, with the exception that its polarity is reversed with respect to the LOCK output. This output is intended for driving a display lamp to indicate the lock status. 19 CAP-K A capacitor connected between this input and Vss sets the time limit for entering a 4 digit code from the keypad. (6 digits when initiating the program mode.) 20 7222-012901-2 VDD Supply voltage positive. Quiescent supply current: (100pF capacitor to Vss and 1.5MΩ resistor to VDD, connected to the RC-OSC input) SYMBOL VDD MAX UNIT IDD 5V 15 µA IDD 9V 25 µA IDD 12V 30 µA MAXIMUM RATINGS: (Voltages references to VSS) RATING DC supply voltage Operating temperature range Storage temperature SYMBOL VDD TA TSTG VALUE +4 to +18 -25 to +70 -65 to +150 UNIT V °C °C DC Electrical Characteristics: (Vss = 0V, VDD = +4V to +15V, = 25°C ≤ TA ≤ +70°C unless otherwise specified) PARAMETER CONDITIONS VDD MIN TYP MAX UNIT Output source current Lock Display, Arm, Disarm Alarm, Lock Program Mode Outputs Logic 1 Output VOUT ≥ VDD - 2V 5V 12V 15V 1.50 5.60 7.25 2.50 8.25 10.7 - mA mA mA Output Sink Current Lock Display, Arm, Disarm Alarm, Lock Program Mode Outputs Logic 0 Output VOUT ≤ Vss + 0.4V 5V 12V 15V .400 1.20 1.50 .60 1.70 2.25 - mA mA mA Output Source Current Tamper Output Logic 1 Output VOUT ≥ VDD - 2V 5V 12V 15V .25 .90 1.10 .400 1.30 1.70 - mA mA mA Output Sink Current Tamper Output Logic 0 Output VOUT ≤ Vss + 0.4V 5V 12V 15V .060 .200 .250 .100 .290 .370 - mA mA mA Input Level Detection All Inputs VIH = Logic 1 5V 12V 15V 3.5 8.0 10.0 - VDD VDD VDD V V V VIL = Logic 0 5V 12V 15V Vss Vss Vss - 1.6 4.0 5.0 V V V FIGURE 3. FIGURE 4. LS7222 PULSE WIDTH ON ARM, DISARM AND TAMPER OUTPUTS vs. CAPACITOR ON CAP-M INPUT KEYPAD ENTRY TIME vs. CAPACITOR ON CAP-K INPUT 5.0 -5 10 V 2V = 1 V DD 1.0 V 12 -8 10 = 9V D V = -7 10 D 2.0 DD 10 V CAPACITANCE IN FARADS 5V D D = 3.0 V CAPACITANCE IN µF 4.0 DD -6 D -9 V 10 = 5V D 10 -10 0 1 2 3 4 5 6 7 8 ENTRY TIME IN SECONDS 9 10 10-6 10 -5 10-4 10-3 10 -2 PULSE WIDTH TIME IN SECONDS 7222-12201-3 10 -1 = 9V TO MASTER ALARM SYSTEM CONTROLLER IMPULSE LATCHING ELECTRO-MECHANICAL LOCK LOCK INDICATOR PROGRAM MODE INDICATOR PROGRAM 11 12 13 CAP-M TAMPER ARM 14 15 16 ALARM DISARM LOCK 17 19 LOCK DISPLAY18 CAP-K VDD 20 +V R R R 10 Y4 Y3 Y2 8 9 Y1 7 X4 6 X3 5 4 X2 3 X1 RC-0SC 2 1 VSS LS7222 R * Ø # X4 +V 7 8 9 X3 See Note 3 4 5 6 X2 1 2 3 X1 FIGURE 2. TYPICAL APPLICATION Y1 Y2 Y3 Y4 NOTES: 1. Keypad is typical 4 X 3 matrix type. Switch resistance should be ≤ 1kΩ. 2. Configuration shown is typical. The outputs of the LS7222 are functionally designed to provide either status or display information. 3. Resistors may be added in series with X inputs to provide protection against ESD from the keypad. R = 10kΩ, 1/4 W . 7222-012901-4