|
-
Jul 14th, 2002, 09:43 PM
#1
Thread Starter
Frenzied Member
I/O Through Printer Port
activate code when circut is brokin. Like alarm system?
-
Jul 15th, 2002, 02:19 AM
#2
Hyperactive Member
I think you would need to have some code running all the time, examining the port every now-and-then with a timer. Have the electronics of the alarm put say a 1 on one of the pins that the port uses for status, like the PaperOut pin, for normal circumstances. Then if the alarm is triggered have that change to 0 and then when your code sees a 0 on the pin it branches to another part of the program.
Two useful sites for this sort of thing are Boondog and Lakeview Research:
http://www.boondog.com
http://www.lvr.com
and attached is a short note I wrote about examining and setting pins.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|