Currently the pic we are working with monitors pin status and sends a simple string out when one of them is pulled high. The problem I am having now is that the pic repeats the proper code over and over while the pin is still high. I need a suggestion on how to get the pic to send the message once and then go back to monitoring the rest of the pins even while the first one is high and NOT repeat the first one or any other that is triggered more then once. I need it to be able to repeat the same procedure for other pins if they also go high. Once the pins go low, it can go back to normal.
If it would be easier, it is being sent to a VB application and I can deal with it on that side if the coding would be easier.
Code:Basic idea of what I have now. :Watch if Portb.1 then Alarm1 if Portb.2 then Alarm2 if Portb.3 then Alarm3 Goto Watch :Alarm1 HSerout [Blah Blah] goto watch
Bookmarks