Here's a further question about parts such as the 0-series ATtiny that have the UPDI and reset functionality shared on a single pin.
If I want to have the pin function as reset, but also allow HV programming, what do I do if I want to have peripheral circuitry that drives the reset line?
When the programmer applies the HV 12V to the line to activate UPDI, obviously the external circuitry needs to be able to handle that higher voltage, but how?
Say for example I have the output of a 74AHCT14 inverter driving the reset line. The
datasheet for it says that output clamping current is ±20mA, and that "input and output voltage ratings may be exceeded if the input and output current ratings are observed". Might a solution be as simple as putting a series resistor in-between the UPDI programming header and the inverter's output?
If I am intuiting things correctly, when the inverter is driving its output high, and 12V is applied, the resistor will drop the 7V difference, and the inverter output will see no more than 5V; when it's driving its output low, the resistor will drop the full 12V difference - right? It should be just a question of choosing an appropriate resistor value, so that under normal operation a logic-low output is below the ATtiny's reset V
IL threshold of ~1V, and during HV it doesn't pass too much current (single-digit mA) and dissipate too much power. Perhaps 3.3k will do.