PIC10F220 RC filter first order


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: PIC10F220 RC filter first order

    for the moment Is a simple (last reading + new reading)/2 average good enough

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: PIC10F220 RC filter first order

    Try this...

    FILTER CON 16 'CHANGE THIS VARIABLE TO VARY FILTER RESPONCE
    PASVAR VAR WORD 'USED FOR FILTER HISTORY
    INVAR VAR WORD 'INPUT VARIABLE
    OUTVAR VAR WORD 'FILTERED OUTPUT VARIABLE

    ' ************************************************** ******************
    LOWPASS: 'LOW PASS FILTER (256 = NO FILTER ACTION/ 1 = MAXIMUM FILTER ACTION)
    ' ************************************************** ******************
    PASTVAR = (PASTVAR - (PASTVAR */ FILTER)) + INVAR
    OUTVAR = PASTVAR */ FILTER 'FINAL DRIVE OUTPUT COMPUTED
    RETURN
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. 2nd order Low-pass passive RC filter on PWM
    By munromh in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th January 2009, 20:03
  2. serout out of order on 12F675
    By Ricardo in forum Serial
    Replies: 7
    Last Post: - 29th April 2008, 01:16
  3. Microchip pic10F220
    By cyberbiota in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th November 2006, 21:29
  4. 2nd Order Digital Filter for 24-bit
    By sefayil in forum mel PIC BASIC
    Replies: 0
    Last Post: - 2nd December 2005, 22:55

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts