1004,West-CBD,No.139 Binhe Rd,Futian District,Shenzhen, China Post Code:518048

+86-18682200597

sales@szhaiwang.com

  • About Us
    Company Profile Enterprise Honor Factory Environment Company Culture Development Path
  • Product
    Microwave Sensor Series PIR Sensor Series LDR Sensor and Light Sensor Thermistor Sensor Series Fresnel Lens Reminder Alarm Sensor
  • News
    Company News Industry News Latest News
  • Service
    FAQ Download
  • Contacts

    Home  -  News  -  Industry News

    Here are several basic techniques to fake circular FIR buffers

    source:Industry News release time:2023-04-14 Hits:     Popular:Infrared sensing module

      

      1. Split the calculation: You can split any FIR calculation into its "pre-wrap" and "post-wrap" parts. By splitting the calculation into these two parts, you essentially can do the circular logic only once, rather than once per tap. (See fir_double_z in FirAlgs.c above.)

      2. Duplicate the delay line: For a FIR with N taps, use a delay line of size 2N. Copy each sample to its proper location, as well as at location-plus-N. Therefore, the FIR calculation's MAC loop can be done on a flat buffer of N points, starting anywhere within the first set of N points. The second set of N delayed samples provides the "wrap around" comparable to a true circular buffer. (See fir_double_z in FirAlgs.c above.)

      3. Duplicate the coefficients: This is similar to the above, except that the duplication occurs in terms of the coefficients, not the delay line. Compared to the previous method, this has a calculation advantage of not having to store each incoming sample twice, and it also has a memory advantage when the same coefficient set will be used on multiple delay lines. (See fir_double_h in FirAlgs.c above.)

      4. Use block processing: In block processing, you use a delay line which is a multiple of the number of taps. You therefore only have to move the data once per block to implement the delay-line mechanism. When the block size becomes "large", the overhead of a moving the delay line once per block becomes negligible.


    Read recommendations:

    Pay attention to the details of the use of NTC temperature control switches

    PIR pyroelectric infrared sensor

    PIR Lens 8002-2

    Φ20 mm size

    1/4 Sphere PIR Lens

    Popular Recommended Products