Good comment regarding the MOSFET's, some of which have a low enough gate current so they can be driven direct from the PIC
Good comment regarding the MOSFET's, some of which have a low enough gate current so they can be driven direct from the PIC
Depending of the load and frequency (if there's any), yes.
For much demanding stuff, there's still the MOSFET driver solution. Tons of different models and type available. Microchip TC1427 are not too bad.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hey. Thanks for all the answers. I think im going to connect a npn transistor as most of you suggested. The probem is that, as it is battery powered, i need to keep the current draw very small. Do you know which will be (more or less) the current flowing from the IO to the base of the npn???
I was going to use the multimeter to measure it, but, after the cleaning lady came home, the screen was broken into pieces!!!
Well, thanks again for your help
Manuel
Using a transistor instead of a MOSFET is going to cost you a few mA in base current right there. MOSFET's have practically no gate current, generally in the pico-amps (except when switching states due to gate capacitance). Use an N channel MOSFET, 2N7000. It'll easily handle 12v across the drain-source, and switch on/off with 5v logic levels on the gate.
Hi,
Some PICs have an open drain output (say PORTA.4). This means that it has only the lower side N-Channel MOSFET inside. And according to a Microchip FAE this can tolerate upto 8 volts safely. Hopefully it should not be a problem with your buzzer and 9v battery.
Regards
Sougata
You're right, it does say that. But it also says that PORTA.4 has protection diodes to VDD and VSS.And according to a Microchip FAE this can tolerate upto 8 volts safely.
Which one are we supposed to believe?
I suppose a little testing would tell.
<br>
DT
YES! DESTRUCTIVE TESTING! I LOVE IT!
I've pulled 9v at about 5mA thru A.4 before, don't know if it was determental to the chip or not, but it seemed to work while I was doing it and I am still using the chip.
On the same note, I'm in Tucson, Az. for another couple of weeks. Man is it dry down here! I'm getting some killer static shocks from the doorknob! zzzztttt
Bookmarks