"Paul B. Webster VK2BZC" wrote: > > Hello Tony. > > > Heres a simple setup using the FSR. Averages for 8 readings though. > > Can't see the add 4 to temp before the divide by 8. Did you forget > it? > -- > Cheers, > Paul B. Not sure??? It's Monday morning :-) but I did muck this up. (It was originally for 8 x 16 bit values.) avLoop movf INDF,W ; add up 8 byte values addwf tempL btfsc STATUS,C incf tempH incf FSR movlw Average +8h >>>(wrong)>>> movlw Average + 10h xorwf FSR,W btfss STATUS,Z goto avLoop -- Best regards Tony http://www.picnpoke.com mailto:sales@picnpoke.com