2015-12-02 05:17 AM
hello dear forum,
I need protect the analog inputs of my STM32 becouse I measure the output of a current detectorand STM32 GND is the same with the GND of power circuitand I face problems with analog inputshow can I protect them ?thank you #stm32-analog2015-12-02 06:04 AM
1) First, don't design any circuit, that would allow to source more than 5V into your STM32 ( nearly all pins are 5V tolerant)
2) You can use zener diode, at around 4-6V. Problem is, it will draw current if voltage is high. That will cause you problems at high speed; 3) Use pair of Schottky diodes, connected in series between power supply and ground. Also place zener diode, so rectification action would not cause power supply to go up in voltage. And connect your signal as well as STM32 pin in middle point, this will limit any voltage around 0.3V to your power supply ( with 3.3V it will be -0.3 to 3.6V) 4) Also you can use active clamping with comparator and mosfet, but this is not very common, but allow good clamping power, best of all)2015-12-03 03:14 AM
hello thank you for answer
I did 1) and 3) ( I used shottky diodes to clamp to -0.3 V and + 3.6 V) alreadythey dont protect enough - the analog input was damaged after some time what do you suggest to use TVSupressor diodes ? which TVS diode shall I use what breakdown voltage would be good ?2015-12-03 03:36 AM
>...what breakdown voltage would be good ?
That is an information you need to provide. Either estimate or measure the voltages/energies you need to deflect from your MCU inputs, and then design your protection accordingly. Especially inductive loads (coils/motors) can turn out to be a real hassle for digital circuitry. You will need supressor diodes or VDRs specified for the energy levels involved, zener diodes will burn quickly (or immediately) in this case. In the worst case, consider galvanic isolation to handle the input signals.