Best way to protect CPU I/O pins from outside world

Discussion in 'Embedded Systems and Microcontrollers' started by fastwalker, Oct 4, 2010.

  1. fastwalker

    Thread Starter Active Member

    Jun 24, 2009
    38
    0
    Hi All,

    If I have a digital input line going to a microcontroller that I'd like to take out to a terminal for hooking up an external signal, what extra circuitry is it good to add to prevent voltage spikes etc. coming in on that signal and damaging the CPU.

    Thanks
     
  2. retched

    AAC Fanatic!

    Dec 5, 2009
    5,201
    312
  3. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,347
    Hello,

    An other option is the use of optocouplers.
    Optocouplers can make a safe barrier between the "bad" world and the MCU.
    It is also possible to seperate powers with them.

    Bertus
     
    Last edited: Oct 4, 2010
Loading...