>If all I am doing is counting pulses I try not to tie inputs to Vcc at
>least not without a series resistor. Drive the input as an output and
>you could smoke the pin. I would use the reed switch to ground and a
>pull-up resistor to Vcc/Vdd. I agree with your value of 10K.
>
>
>
> Vdd
> |
> 10K
> |
>pin<-----+
> |
> reed switch
> |
> Vss (ground)
You could still hurt the micro if the pin is driven high and the reed
switch is closed. I'd add a protection resistor:
. Vdd
. |
. 10K
. |
pin<--330---+
. |
. reed switch
. |
. Vss (ground)
...Andy
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment