The best way to protect AVR pin for me is RC filter and TVS diode but I don't know one thing. I've seen schematics where TVS diode was before RC filter like in first schematics.
simulate this circuit– Schematic created using CircuitLab
But before resistor it is larger current so TVS diode will blow faster than in situation that TVS diode would be behind RC like in second schematics.
Question is:Which way of protecting AVR input is better, first or second?