×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

protecting analog input of microcontroller

protecting analog input of microcontroller

protecting analog input of microcontroller

(OP)
I have a dual schottky diode connected to my analog input of my microcontroller. Is the only component that can be used to protect the IO pin from voltage spikes or ESD?

RE: protecting analog input of microcontroller

No, you can use a cap to shunt a voltage spike to ground.  Size your cap based on the frequency that you want shunted.

RE: protecting analog input of microcontroller

Place a series resistor before the diodes.  The resistor will limit the peak current while the diodes clamp the voltage spikes.  What value?  It depends if you have any bandwidth requirement for the analog input.

RE: protecting analog input of microcontroller

A cap will help with high frequency transient spikes, but in the case of (relatively) low frequency transients you would be wise to have some zener diodes of the appropriate zener voltage there as well.  

When the voltage on the input pin exceeds the zener voltage they "clamp" the pin voltage to the zener voltage.  Make sure you size it correctly for current carrying ability if you think there could be the potential for a high-current spike.  Otherwise if it is just a signal you would probably be fine with the standard small signal diode package.  

RE: protecting analog input of microcontroller

(OP)
Mr Bananas it's a 0-5VDC analog input. Small signal diode could be a 1n4152 maybe? or something of the sort?

RE: protecting analog input of microcontroller

You said you have schottky diodes on the processor if they are ones you have added externally do check for leakage current...

RE: protecting analog input of microcontroller

(OP)
Itsmoked this thread is similar to the other you replied to. Check for Leakage current? Is it as simple as removing the SMT component from the circuit board, hooking up 5V to Cathode and Ammeter in series of anode and power supply common to measure current when diode is powered?

RE: protecting analog input of microcontroller

Yes. You can check diode leakage like that.

Schottky diodes are much leakier than signal diodes...

Have a look a the spec sheet for your device & compare it with a 1n4148 or whatever.

RE: protecting analog input of microcontroller

Yep that is the way to test it.  Also the leakage changes a lot with temperature.  Cold may be no problem, room temp may BE a problem.

I still say u rarely need them in that service.  I have never used them in dozens of projects that have lots of handling.

If your analog source originates on your board you absolutely don't need them.


RE: protecting analog input of microcontroller

(OP)
My analog source 0-5vdc comes from another location. It's fed from an analog output card.

RE: protecting analog input of microcontroller

Then it was wise to consider...

And decide;

1) This micro has beafy Schottkys inside. I don't need to add external ones.

2) To cut ANY Schottkys a break I should have some series impedance on that input.  Is there some already due to whatever, like a voltage divider, etc.  If not, I should add some being careful not to add too much if the signal is rapidly varying or the R-C this protection resistor teamed with the processor's pin capacitance will start causing other problems.flip

RE: protecting analog input of microcontroller

(OP)
.2) There's a voltage divider at the input. I am just going to pull them out. thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources