background image

April 2007

  Rev 1

1/27

UM0408

User manual

Security door keypad controller

Introduction

This document describes the operation of a keypad controller for use in security door 
applications. The aim is to assist in the development of a keypad decoding system and to 
display associated information through LEDs for all necessary actions such as power on, 
door open and error. The entire system has been developed to target low-end and low-cost 
application areas and has been realized with the help of the ST7FLITE39 microcontroller. A 
useful additional feature is the support of system protection from physical intrusion, using 
the STM1403.

The associated evaluation board (order code STEVAL-IAS001V1) aims to display the 
capabilities of ST's general purpose microcontroller to fit the market segment of home 
automation and security, keeping the system cost as low as possible.

The board can operate in 2 modes:

User (stand-alone) mode 

Administrator mode 

– through board

– through PC Graphical User Interface 

System operation in the various modes is explained through the document sections. When 
the board is connected to the power supply the system enters the user configuration mode. 
Administrator mode can be accessed through the use of a PC, where SCI communication is 
set up and used between the PC and the board through the RS232. 

At the time of manufacturing an additional board has been connected to allow in-circuit 
programming of the microcontroller. The two can be easily disconnected so that the keypad 
controller for the security door evaluation board can be used independently.

To summarize, the key features of the evaluation board include:

4x3 key matrix

3 LEDs (green for power, red for error and yellow for magnetic lock)

4 jumpers for physical intrusion detection with battery back-up and buzzer

On-board SPI EEPROM for event logging

On-board RS232 driver to interface with the PC

Power supply adaptor (3.4V - 19V)

Embedded in-circuit programming capability

www.st.com

Summary of Contents for UM0408

Page 1: ...n operate in 2 modes User stand alone mode Administrator mode through board through PC Graphical User Interface System operation in the various modes is explained through the document sections When the board is connected to the power supply the system enters the user configuration mode Administrator mode can be accessed through the use of a PC where SCI communication is set up and used between the...

Page 2: ...r code tampering 12 2 2 Administrator mode through board 12 2 2 1 Add new user code 12 2 2 2 Delete user code 13 2 3 Administrator password reset through board 14 2 4 Administrator mode through PC graphical user interface 15 2 4 1 Connecting to the PC 15 2 4 2 Powering on the board 16 2 4 3 The first GUI window login GUI mode 16 2 4 4 Communication setting 16 2 4 5 Communication error 17 2 4 6 Fea...

Page 3: ...UM0408 Contents 3 27 Appendix D Troubleshooting 25 D 1 Communication error 25 D 2 Time out error 25 D 3 Delete all users 25 3 Revision history 26 ...

Page 4: ...em icon in the Control Panel 1 2 Package contents The keypad controller for the security door evaluation package is orderable with the following order code STEVAL IAS001V1 It includes Hardware One demonstration board Software PC executable software to be used along with the demonstration board Documentation User manual The firmware source code C language is not included in the evaluation package P...

Page 5: ...wer jack for the DC adaptor 2 3 status LEDs for power error and magnetic lock 3 4x3 key matrix to enter the user code 4 4 jumpers for physical intrusion detection 5 An RS232 female socket 6 An HE10 connector for ICC programming 3 status LEDs External power RS232 female HE10 ICC 4x3 key matrix supply jack socket connector 4 jumpers for physical intrusion configuration ...

Page 6: ... for the tamper detection device in the event of power failure 3 KF33B voltage regulator 4 ST7LITE39F2 microcontroller 5 M95080 EEPROM for data logging 6 STM1403 tamper detection device 7 ST3232C RS232 driver 1 4 Software installation To install the PC GUI follow the steps described below 1 Double click the Security Door executable icon The window shown in Figure 3 opens KF33 Battery STPM1403 ST32...

Page 7: ...ow 2 Click Next to move to the License Agreement window shown in Figure 4 Read the license and if you accept it click Yes Figure 4 License agreement 3 The Customer Information window opens as shown in Figure 5 Enter the relevant information and click Next ...

Page 8: ...u want to install the software see Figure 6 By default the software is installed to the following path C Program Files STMicroelectronics SecurityDoorKeypad Figure 6 Select installation folder 5 After selecting the destination folder click Next The software installation then starts see Figure 7 ...

Page 9: ...f the installation process the window shown in Figure 8 opens Click the Finish button Figure 8 Installation complete You will find the software and Help Files have been placed in the installation folder Also a shortcut is available in the Windows Start Menu and on the Desktop ...

Page 10: ...e system stabilizes Figure 9 Power on condition all LEDs ON After the around 4 5 seconds the system stabilizes and just the green power LED remains on see Figure 10 Figure 10 System stable ready to use Note Do not perform any operations while the system is stabilizing i e while all three LEDs glow 2 1 2 Default system settings The system comes with a number of default settings including the admini...

Page 11: ...ne the tamper condition Normal or no tampering condition This is the default status when both the NL jumpers JP2 JP4 are closed and both the NH jumpers JP1 JP3 are open The buzzer is off Tampering normal low This is the tamper condition when either or both of the NL jumpers JP2 JP4 are open and both the NH jumpers JP1 JP3 are open The buzzer is on Tampering normal high This is the tamper condition...

Page 12: ...red error LED see Figure 12 glowing for approximately 10 minutes During this time the magnetic lock is disabled This event is logged in the EEPROM This condition can be exited in one of two ways either by waiting for 10 minutes or by entering the administrator password to return the system back to a normal state which returns the LEDs back to just green Power This event is also logged in the EEPRO...

Page 13: ... mode 4 Enter the new user code to be added within 1 minute If a 5 digit user code is entered the system checks if it exists If not found the red error LED flashes 6 times If it exists the red error LED glows for approximately 12 seconds and the system exits admin mode If user code is not entered within 1 minute the red error LED glows for approximately 12 seconds After this the system exits admin...

Page 14: ...leted within 1 minute If a 5 digit user code is entered the system checks if it exists If it exists the red error LED flashes 6 times If not found the red error LED glows for approximately 12 seconds and the system exits admin mode If a user code is not entered within 1 minute the red error LED glows for approximately 12 seconds After this the system exits admin mode 5 Press the key within 1 minut...

Page 15: ...proximately 12 seconds After this the system exits from admin reset password mode If nothing is entered within 1 minute the red error LED glows for approximately 12 seconds After this the system exits from admin reset password mode 6 Press the key within 1 minute If is pressed this is confirmation for the administration password reset to 00000 The red error LED flashes 18 times The system exists f...

Page 16: ...or details on each feature and its usage refer to the GUI help manual Note When in GUI mode the system cannot be used or configured in user or administrator modes configuration from the board itself 2 4 4 Communication setting Ensure that the communication settings between the board and GUI are as follows baud rate is set to 4800 right COM port is selected Follow the steps below to configure the c...

Page 17: ...ow 2 4 5 Communication error If the following message appears Figure 15 then it could be due to the following reasons 1 Baud rate mismatch set it to 4800 the red error LED glows 2 RS232 serial cable not connected properly 3 Incorrect COM port selection Figure 15 Communication error message ...

Page 18: ...s supported only through GUI 5 View event log Summary of all the events logged in EEPROM of the system This feature is supported only through GUI 6 Delete event log Delete the EEPROM data This feature is supported only through GUI 7 View code list View all the active user code for the system This feature is supported only through GUI 8 Change admin password Change the admin password This feature i...

Page 19: ...e through watchdog The system is designed in such a way to support automatic log off from GUI mode if no communication from PC is received No communication from the PC could be due to RS232 cable un plugged without proper log off from the GUI GUI idle for long time no serial communication between PC and board In this situation the system watchdog is activated for approximately 30 seconds After tha...

Page 20: ...efinition 1 RTC Real Time Clock 2 PC Personal Computer 3 EEPROM Electrically Erasable Programmable Read Only Memory 4 SPI Serial Peripheral Interface 5 LED Light Emitting Diode 6 SCI Serial Communication Interface 7 OS Operating System 8 ICC In circuit communication 9 Admin Administrator ...

Page 21: ...PB0 4 SCK PB1 5 MISO PB2 6 MOSI PB3 7 PA2 16 PA3 15 U4 ST7FLITE39F2M6 S 1 Q 2 W 3 VSS 4 VCC 8 HOLD 7 C 6 D 5 U3 M95080 WMNP RST 1 MR 2 SAL 3 VSS 4 TP4 8 TP3 7 TP2 6 TP1 5 VOUT 12 VBAT 11 PF0 10 VREF 9 BLD 16 PF1 15 VCCSW 14 VCC 13 U2 STM1403ASNQ6F 5 6 8 7 9 4 0 1 2 3 R6 10k PB5 PA4 PA1 PA3 PA0 VCC RESET ICCDATA ICCCLK I 1 G 2 O 3 U1 KF33BDT TR D1 POWER R1 330 VCC R4 10k SCK MOSI SS MISO R11 10k VC...

Page 22: ... KF33BDT TR DPAK 3 ST KF33BDT TR U5 1 RS 232 interface ST3232 SO 16 ST ST3232CDR D4 1 Diode BAT54J SOD 323 ST BAT54JFILM J2 1 RS 232 connector DB9 F Farnell 105 6112 CON1 1 ICC Connector Header 5x2 IDC 10B Farnell 1106782 D1 1 LED Green Through hole Farnell 884 698 D2 1 LED Red Through hole Farnell 942 492 D3 1 LED Yellow Through hole Farnell 942 455 0 1 Push button Switches 4 leg Through hole Pus...

Page 23: ...1 Push button Switches 4 leg Through hole Push 4 Farnell 535 916 1 Push button Switches 4 leg Through hole Push 4 Farnell 535 916 1 Push button Switches 4 leg Through hole Push 4 Farnell 535 916 BZ1 1 DC Buzzer Through hole 85db 1 5V 27V DC Stuff S E B 20 B 1 3V Battery CR2032 Coin type MAXEL MAXELCR2032 BT1 1 Battery Socket BATT C MAXEL MAXELCR2032 R11 R2 R3 R4 R5 R6 R9 7 Resistor 10K 0805 Local ...

Page 24: ...Capacitor 1 F 10V CAP Local C5 1 Capacitor 2 2 F 10V CAP Local J1 1 Power Jack for adaptor power jack for adaptor Local JP1 JP2 JP3 JP4 4 Jumper SIP 2 berg strip Local C11 1 Capacitor 10nF 0805 Local Table 2 Bill of materials Designator Quantity Reference Value Generic Part Number Package Manufact Supplier Manufacturer s Supplier s ordering code Orderable Part Number ...

Page 25: ...or see Figure 19 is shown when the command issued by the user takes longer to finish than expected by the system on the GUI side though the operation is completed on the board side In this case the user needs to re start the GUI to get the real system status Figure 19 Time out error D 3 Delete all users Deleting all users is a time consuming process To ensure that this is completed after receiving...

Page 26: ...Revision history UM0408 26 27 3 Revision history Table 3 Document revision history Date Revision Changes 06 Apr 2007 1 Initial release ...

Page 27: ...ANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY AN AUTHORIZED ST REPRESENTATIVE ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS...

Reviews: