1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Electronics wave with pic16f877a

Discussion in 'Modding' started by ahmad-al3omar, 9 May 2007.

  1. ahmad-al3omar

    ahmad-al3omar What's a Dremel?

    Joined:
    21 Dec 2006
    Posts:
    17
    Likes Received:
    0
    how can i make a processing on a wave by using pic16f877a
    if it exceed a level the pic will have output_high.
    thank you
     
  2. SteveyG

    SteveyG Electromodder

    Joined:
    23 Nov 2002
    Posts:
    3,049
    Likes Received:
    8
    You need to scale down your signal and make sure it can never swing above/below Vdd/Vss. Easiest way to do this is with an a pair of op-amps (depending on the signal). First op-amp scales and/or shifts the waveform, second op-amp powered from the same supply as the PIC ensures the voltage cannot exceed the supply rails to the PIC.

    You could also clip high voltages with a suitably rated zener assuming 5V supply.
     

Share This Page