J
John Larkin
- Jan 1, 1970
- 0
Because it will either be high or damaged.
Have you ever seen a CMOS logic chip damaged by a short to Vcc or to
ground? I haven't.
John
Because it will either be high or damaged.
Don needs a workaround in an unusual situation, and this would be
perfectly safe.
Have you ever seen a CMOS logic chip damaged by a short to Vcc or to
ground? I haven't.
John
Have you ever seen a CMOS logic chip damaged by a short to Vcc or to
ground? I haven't.
I'm not a uP expert, but do I recall correctly that "strength" can be
set on outputs (at least certain devices)?
[snip]I'm not a uP expert, but do I recall correctly that "strength" can be
set on outputs (at least certain devices)?
The old Intel devices (still very available and popular in the form of
some 8xC51 devices) have a hideous pseudo-bidirectional design that
incorporates a weak pullup and a strong pullup that is switched in for
a brief period of time (some portion of a machine cycle, IIRC) to
charge exernal capacitance.
But the PICs use conventional bidirectional CMOS I/Os, some with a
rather weak pullup that can be turned on or off from a config
register.
Best regards,
Spehro Pefhany
That must be what I was remembering... selectable weak or strong
pull-ups.
...Jim Thompson
Adding a single resistor in series and relying on pin capacitance instead of
short circuit current seems to me to be a safer approach, especially when
used on high volume or high service-cost products. Why? Because you are
relying on an uncharacterized and untested electrical parameter that may
change suddenly by the manufacturer.
John's idea will be much less sensitive to outside noise that happens
to come along in the brief window when the pin is being read. ;-)
JL
VCC
+
|
|
|
o--+
o--o----
o--+
|
|
|
|
|
===
GND
DR
VCC
+
|
|
|
___ o--+
o---|___|----o----
R o--+
|
|
|
|
|
===
GND
SP
VCC
+
|
|
270R 270R |
___ ___ o--+
o---|___|---+---|___|--o----
| o--+
| |
--- |
--- 1n |
| |
| |
=== ===
GND GND
Best regards,
Spehro Pefhany
http://www.speff.comSpehro Pefhany said:John's idea will be much less sensitive to outside noise that happens
to come along in the brief window when the pin is being read. ;-)
JL
VCC
+
|
|
|
o--+
o--o----
o--+
|
|
|
|
|
===
GND
DR
VCC
+
|
|
|
___ o--+
o---|___|----o----
R o--+
|
|
|
|
|
===
GND
SP
VCC
+
|
|
270R 270R |
___ ___ o--+
o---|___|---+---|___|--o----
| o--+
| |
--- |
--- 1n |
| |
| |
=== ===
GND GND
Best regards,
Spehro Pefhany