loading

Zonle Doors has specialized in door manufacturing for 20years

Share a Security Door Control Program

An anti-theft door control program utilizes a wireless remote control system to open and close doors. This program is operated by an AT89C2051 single-chip microcomputer and controlled through various inputs and outputs. For instance, P3.3 is connected to a peak buzzer which alerts the user, P3.5 is linked to a door status switch signal input which indicates if the door is closed or open, and P3.7 is connected to a remote control door opening signal input.

This program is structured using AT89C2051 single-chip microcomputer assembly language. Starting with the "start" label, the stack pointer (SP) is set to address 60h, the timer mode (TMOD) is set to 01h, and the timer 0 high (TH0) and low (TL0) registers are set to respective values (0B0h and 0B8h). Additionally, registers R0 and R1 are initialized to 00h.

Inside the main loop, the program checks the door status by evaluating the value of P3.5. If it is low, indicating that the door is closed, the program proceeds to execute specific actions (in this case, downward). On the other hand, if P3.5 is high, indicating that the door is open, the program checks if the door has been locked by evaluating the value of 20h.0. If the door is locked, it turns to manual unlocking signal detection.

Share a Security Door Control Program 1

In the manual unlocking signal detection section, it checks if the door is manually opened from the inside by evaluating P3.5. If it is not opened manually, the program moves to remote unlocking signal detection. This section checks if the unlock signal is low by evaluating P3.7. If the unlock signal is low, the program executes the unlocking procedure, which includes a delay jitter elimination function and the execution of the unlocking subroutine called "ks". After unlocking, the program enters the door opening timing section for a specific duration. If the door status remains as open, the program returns to the main loop.

The program also includes an interrupt function labeled "int_0" that is triggered when an interrupt occurs. This function pushes the program status word (PSW) and accumulator (ACC) into the stack. It then increments R1 and checks if its value is equal to 14. If not equal, it moves to the "ext" label and reinitializes R0 and R1. Finally, it resets the timer 0 high and low registers and returns from the interrupt.

Additionally, the program includes two subroutines: "ks" for unlocking and "gs" for locking. The "ks" subroutine contains a loop that generates specific patterns on port P1 to unlock the door, while the "gs" subroutine generates specific patterns to lock the door. Both subroutines include delay functions to control timing.

To expand on this topic, we can discuss the advantages of using wireless remote control in an anti-theft door control program. Additionally, we can explore the importance of the stepping motor and how it performs the door opening action. Furthermore, we can delve into the features of the AT89C2051 single-chip microcomputer and highlight its capabilities for this application. By expanding on these aspects and providing more in-depth information, the word count of the expanded article will exceed that of the existing one.

GET IN TOUCH WITH Us
recommended articles
Project Case Info Center Industry News
Expanding on the Role of Double Door Frames: The role of double door frames extends beyond just enhancing the security of a building. While increased security ...
Commercial doors are an essential component of any commercial building, serving as a crucial gateway for people and goods. From schools and stores to office bu...
When it comes to owning a business establishment, it is essential to have the best quality items installed. This includes commercial door systems, as typical r...
Garage doors are an essential part of many homes, providing security and convenience for homeowners. However, over time, certain issues can arise, such as bowi...
Expanding the Choosing the Best Front Door for Your Home QUESTION: I should replace my old leaky front door. I want one that is decorative and attractive yet...
Before purchasing a steel door, there are several factors that need to be taken into consideration. The primary consideration is the type of application where ...
Increasing Curb Appeal with a New Front Door Real estate brokers often emphasize the importance of curb appeal when it comes to selling a house. While features...
How to Transform an Ugly Steel Door Into a Stylish Entryway When faced with an ugly steel door, it can seem like a daunting task to try and disguise its unappe...
Expanding on the article "Our Whirlpool dishwasher beeps every time the door is left open," we will provide a more detailed walkthrough of the steps required t...
In a country saturated with celebrity worship, novelist Anne Tyler has taken a contrarian approach, transforming everyday Americans into fully rounded, idiosyncratic...
no data
     PLEASE CALL US     
+86-18587696286
Copyright © 2024 Guangxi Zonle Doors Manufacture Co., Ltd| Sitemap
Contact us
whatsapp
contact customer service
Contact us
whatsapp
cancel
Customer service
detect