??? 07/19/06 14:51 Read: times |
#120594 - Doable, but disadvantagous Responding to: ???'s previous message |
Jan said:
Not that I like this solution, but wouldn't a pullup from the transistor's base to +5V help? Of course, you can do that. You can connect a 1k2 resistor from Vcc to base, for instance. In this case, the weak active pull-up pFET3 is still turned-off, but doesn't matter. It's drive current isn't needed. But there are some disadvantages of this scheme: 1. Enormeous port currents will flow, when emitting low level. Especially, if not only one such driver is used. 2. Due to the fact that still a pn-junction tears down the potential at port pin to about 0.7V, a read instruction of port pin will result in an eroneous logic low level state, although 1s was formerly written into the SFR, means although the correct logic level of output is "high state". You can prevent this latter disadvantage, by inserting a second resistor between port output and base. But then you have to choose two 620R types, to get the same base current. But this will cause even higher port currents, when emitting logic low state! Kai |