| ??? 03/20/03 17:34 Read: times |
#41980 - FINALLY Responding to: ???'s previous message |
Shahzad Aslam wrote:
------------------------------- Raghunathan i have some device which outputs +5V in normal conditions and 0V or FLOAT in alarm conditions. So regardless i want my microcontroller read 0V or FLOAT as 0. ------------------------------- Well, I understand you are using sensors with ONE NC contact only. IN this case, if you have 16 free pins on you controller (excluding port 0), then use PULL-DOWN resistors on those pins and connect the output ofthe sensors to thepins. Now, when the sensors are in normal conditions, you get a healthy +5v signals and will be detected as 1 by the µC. When in alarm condition, the contact opens (thus leaving the pin in external Float), the Pull-Down ensures your controller reads it as 0. GUESS your problems are solved and peace restored... :) :) Can I have some coke please (as I dont Drink beer :)) ). -Harsha |



