i have completed most parts but this bit confuses me, I know its simple but just confuses me,
The Books says :Put this pin low (less than 0.66 Vdc) to key transmitter and enable
external mic audio path. This path is pulled low via a diode when front
panel mic PTT is pulled low to allow sensing of mic PTT by accessory.
This pin pulled high to 3.3 Vdc via 3.3k ohms
Not connected to anything at all (..."very very high resistance" to the pedants, aka "high-Z")
Connected to GND via a little 40mA MOSFET
Connected to Vcc via a resistor
Connected to Vcc via a little 40mA MOSFET
My method switches between (1) and (2) using pinMode()
(3) and (4) are bad if your external device is 3.3V - don't do it!
Quick question on this, if the pin is set up in the first state, isn't there still a connection there? its not physically disconnected from the chip obviously but then that means the internal gates are in a transitions state right?
now according to most sources online, if i left the pin floating and had a circuit hooked up to it with 0.8v - 2.2v it could burn out that pin.
If the pin is set as INPUT and has anything from GND to Vcc connected to it (or left floating) it's fine. With respect to "most sources online" I have never seen anyone suggest otherwise and such a suggestion seems absurd; where did you read this?
Remember that the default state of a pin is INPUT. If there were any danger in leaving it in that state we'd all be burning out chips left and right.
FYI, a "floating" pin, by definition, has nothing (including the pullup) connected to it.
Those resistor values are for White leds with a 3.2v drop and 20ma max forward current.
The issue is, from what I read (not saying its a valid source) if the input is tri-stated by calling pinMode(pin, INPUT) the gate could be damaged due to excessive current from the circuit its connected to. I know if the pin isn’t connected to anything and left as an input its fine but I’m more concerned with having it connected to something and left as an input with voltages below 3 volts applied to it for longer then a second.
if the input is tri-stated by calling pinMode(pin, INPUT) the gate could be damaged due to excessive current from the circuit its connected to
if an input is tri-stated its input impedance is high (a lot of megaohms), so no current is flowing in (except some leakage, let say 500nA).
Btw, connecting an arduino/mcu to an HF/VHF transceiver is not an easy task usually
Everything works nice until you key the PTT, or you say something into the mike when doing ssb