Thanks for the help, I appreciate it.
Would the 2n2222 work for my application? (i.e. just pulling a 5V wire to ground?) Which transistor would you recommend?
Thanks again,
TOny
Thanks for the help, I appreciate it.
Would the 2n2222 work for my application? (i.e. just pulling a 5V wire to ground?) Which transistor would you recommend?
Thanks again,
TOny
Last edited by TonyA; - 4th March 2008 at 21:17.
None!
Just use the Tri-State output of the PIC.
Added:Code:PORTB.0 = 0 ; Pin goes to gnd when not Tri-Stated TRISB.0 = 0 ; Output to Ground ;.... TRISB.0 = 1 ; Output Tri-Stated
If there's any possibility that the external 5V is higher than the PIC's 5V?
Use PORTA.4 instead. It doesn't have the VDD voltage limit.<br>
Last edited by Darrel Taylor; - 4th March 2008 at 22:04. Reason: RA4
DT
Darrel, and FalingTrea thanks. I was wondering about that. Thanks again.
Tony
Last edited by TonyA; - 5th March 2008 at 00:06.
Bookmarks