Bs2SX Alarm System.
J. H. Rollins
Posts: 9
Hello Stamp Programmers:
I Could use some help on a 6 Channel Alarm System that i am working on. The system is comprised of a BS2SX Stamp,Time clock, and Keypad.· Here is a brief outline on the operation.
The clock triggers the Program every 500 ms and the information is displayed as follows:
······ Date______·· Time_____···· Channel______ %111111
When the alarm is triggered, it reads as follows:
······ Date 6/14/05 Time 08:33:00 Channel······ %111110
This information is input on the upper eight I/O pins (Command INH), stored in EEPROM.· What I would like the rogram to do is display the information in this format:
······ Date_____···· Time_____···· Location_______Channel_______
······ Date 06/14/05 Time 08:33:00 Downstairs···· Channel 5
I have been unable to program the system to accomplish this task and would very much appreciate any help you can give me. I have tried to program each Channel for 1 or 0 BIN1. This works for only one Channel. I have not been able to program the other five channels for 1 or 0. The problem is when all the switches are scanned every 500 ms for 1 or 0, I am unable to seperate the binary bit for each Channel.
It looks like the six bits could logically be "and" with each Channel for proper identification but i have not been able to accomplish this. Any help would be greatly appreciated.
Thanks
J H Rollins.
Post Edited By Moderator (Jon Williams (Parallax)) : 6/25/2005 12:26:42 AM GMT
I Could use some help on a 6 Channel Alarm System that i am working on. The system is comprised of a BS2SX Stamp,Time clock, and Keypad.· Here is a brief outline on the operation.
The clock triggers the Program every 500 ms and the information is displayed as follows:
······ Date______·· Time_____···· Channel______ %111111
When the alarm is triggered, it reads as follows:
······ Date 6/14/05 Time 08:33:00 Channel······ %111110
This information is input on the upper eight I/O pins (Command INH), stored in EEPROM.· What I would like the rogram to do is display the information in this format:
······ Date_____···· Time_____···· Location_______Channel_______
······ Date 06/14/05 Time 08:33:00 Downstairs···· Channel 5
I have been unable to program the system to accomplish this task and would very much appreciate any help you can give me. I have tried to program each Channel for 1 or 0 BIN1. This works for only one Channel. I have not been able to program the other five channels for 1 or 0. The problem is when all the switches are scanned every 500 ms for 1 or 0, I am unable to seperate the binary bit for each Channel.
It looks like the six bits could logically be "and" with each Channel for proper identification but i have not been able to accomplish this. Any help would be greatly appreciated.
Thanks
J H Rollins.
Post Edited By Moderator (Jon Williams (Parallax)) : 6/25/2005 12:26:42 AM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax