This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Monday, August 11, 2008

Re: [oopic] Reed switch help

At 05:44 PM 8/11/2008, Brian Lloyd wrote:
>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: