Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/07/09 07:20
Read: times


 
#166819 - Erik did exmplain
Responding to: ???'s previous message
Didn't you read Erik's post?

If the input pin has a diode to Vcc, that diode will conduct when the pin voltage reaches Vcc + Vf of the diode. If there isn't some external current limiting resistor, the current in through the pin can get high enough that it destroys the chip.

The datasheet for the processors don't always tell if there is such a diode, in which case you can't just connect 5V to a pin of a processor powered by 3.3V, (or 7V to a pin of a processor powered by 5V). Adding a suitable resistor in series, you will be able to see if there is a diode in the chip, in which case the pin voltage will just raise with Vf and the rest of the over-voltage (Vin - Vcc - Vf) will be over the resistor. If there isn't a diode that shorts the overvoltage to Vcc, then there will be almost no voltage loss over the resistor, and the processor pin voltage will rise to match the input voltage.

A problem here is that all chips are not designed equal, and that also includes their behaviour when held in reset. Some processors supports this "trick" after the I/O pin has been correctly initialized, but may clip to Vcc + Vf when in reset, in which case there must be a current-limiting resistor always fitted. Some other processors will also in the reset state have the pin 5V-tolerant without the need of a current-limiting resistor. An ARM chip I worked with claimed in the datasheet that the pins were 5V-tolerant (3.3V Vcc) and later got an errata note that some of the pins needed a current-limiting resistor.

List of 33 messages in thread
TopicAuthorDate
Driving a 5 v PNP with 3.3 volts pin            01/01/70 00:00      
   Diagram ?            01/01/70 00:00      
      Sketch..            01/01/70 00:00      
         Steve..            01/01/70 00:00      
            Why push-pull?            01/01/70 00:00      
               Thanks Rob            01/01/70 00:00      
               Very much depending on chip            01/01/70 00:00      
                  Yeah, but ...            01/01/70 00:00      
                     Better always add a note for potentially dangerous methods            01/01/70 00:00      
                        Is that my responsability?            01/01/70 00:00      
                  Westermark            01/01/70 00:00      
                     Erik did exmplain            01/01/70 00:00      
                        Sorry Westermark..            01/01/70 00:00      
         KISS            01/01/70 00:00      
   If it has not to be a PNP...            01/01/70 00:00      
      Relay has to be driven..            01/01/70 00:00      
         since I would never do that ...            01/01/70 00:00      
            Open drain pulled up to 5V..            01/01/70 00:00      
               did you read my post            01/01/70 00:00      
                  Deep waters            01/01/70 00:00      
                     OK, more            01/01/70 00:00      
                        I missed this post..            01/01/70 00:00      
      BC556 would turn on, wouldn't it?            01/01/70 00:00      
         It wouldn't. Sorry.            01/01/70 00:00      
   Have you considered a pMOSFET?            01/01/70 00:00      
      Yep, I second that! Use a FET            01/01/70 00:00      
         Have you considered that he must drive a 5V relay?            01/01/70 00:00      
            Does that really matter?            01/01/70 00:00      
               To what do you connect the source of this pMOSFET??            01/01/70 00:00      
                  It's the switched drain current that does the work            01/01/70 00:00      
                     Of course, it does! But...            01/01/70 00:00      
                        One could also use a "switch" ...            01/01/70 00:00      
                           Yes, that's safe!            01/01/70 00:00      

Back to Subject List