Hello! I need some help with this program...it doesn't quite run by the way I want it to
Develop a program that will simulate a home alarm system, using the DIL switches on the application board to simulate the sensors and the speaker to signal the alarm. The system will detect two conditions (SW =1, means door not closed or window is open)
a. SW0 - detect the door
b. SW1 - detect the window
when switch detected/ or sensor triggered, a high frequency sound will activate as warning. At the same time, LED D4 will be turned on if the door is opened or/and LED D5 will be turned on if the window is opened.
START LD B,01H
DOOR LD A,10H
TONE EQU 05E4H
It's not quite finished yet,I'm trying to make it work with one switch first. Do give me your thoughts and opinions! If you cannot help, giving me any good sites for reference would be very helpful too.