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

    How to implement FIR filter with assembly?

    source:Industry News release time:2022-11-01 Hits:     Popular:Infrared sensing module

    4900 PIR lens

      The FIR filter assembly algorithm is corresponding to the processor, but most common systems will use a DSP processor provided by the ring cache.

      1. Configure the ring cache. Loading factor and delay line pointer. Then do the following for each sample point:

      2. Store the incoming data in the delay line; increment the delay-line pointer.Digital

      3. Clear the multiplier-accumulator.

      4. Loop over all coefficients/delays; accumulate the values obtained by multiplying the coefficients by the delayed samples.

      5. Round or truncate the result as the FIR output.

      Alternatively, a "shuffle down" method is used in Texas Instruments' older fixed-point processors to implement circular buffers. The processor literally moves each sample delay values by one slot during each multiply-accumulate (via the "MACD" instruction).

      Each DSP microprocessor manufacturer provides example FIR assembly code in its data books or its application handbooks, so be sure to look at those before you "reinvent the circular buffer".


    Read recommendations:

    The difference between NTCKSD thermostat and NTCKST thermostat

    The industry's smallest medical grade FIR sensor

    PIR Lens 8308-5

    PIR Lens 7601-15

    PIR Lens 8120

    Popular Recommended Products