How to protect an analogue input

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times

How to protect an analogue input

Post by Steve001 »

Evening All

Looking to protect against an over voltage to an analogue input pin, to prevent against those "accidents when rushing " and doing warp factor 10 :roll:

have been thinking of the following

1. series resistor(100 R) with zener diode (5V1) The input pin.
2. op amp wired as a voltage follower with a 5 volt single rail supply
3.https://www.maximintegrated.com/en/prod ... AX366.html - Fig 2.

Any ideas / suggestions / recomendations

Steve
Success always occurs in private and failure in full view.

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: How to protect an analogue input

Post by medelec35 »

Since the i/p has diode protection (except VPP) and internal resistance is high, I use a 10k resistor in series with source & i/p that's it.
Martin

Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times

Re: How to protect an analogue input

Post by Steve001 »

Hi Martin,

would this protect the input if it went well above 5 volts, if the input was incorrectly selected.
Do the analogue inputs have diodes to vcc and vss internally

Steve
Success always occurs in private and failure in full view.

medelec35
Matrix Staff
Posts: 9521
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times

Re: How to protect an analogue input

Post by medelec35 »

Hi Steve,
Steve001 wrote:would this protect the input if it went well above 5 volts
Yes it would.
Looking at the data sheet of 16F1937 for example, it states:

Code: Select all

Clamp current, IK (VPIN < 0 or VPIN > VDD)................................................................................................................± 20 mA
So if voltage is 5+0.7V then with 10K the very maximum voltage on the i/p will be:
20E-3*10E3+5.7 = 205.7V
It's best not to go anywhere near that voltage if you can help it.
If it was me I would probably use a much safer figure of say 700uA
So max voltage = 700E-6*10E3+5.7 = 12.7V
What maximum voltage did you have in mind?
Steve001 wrote: Do the analogue inputs have diodes to vcc and vss internally
Yes the diodes are built in.
The datasheet should show this.
Again looking at 16F1937:
Built in ESD diode protection.png
(36.53 KiB) Downloaded 5879 times
Martin
Martin

Post Reply