Normalization
Normalization
Normalization is the process of scaling a quantized value for its maximum dynamic range.
  • Why is normalization (scaling) needed?
    • Suppose sign-extended fractional data is obtained from a 12-bit ADC:
      • Scaling data up prior to data processing allows us to use the full 16-bit dynamic range available through the accumulators
      • Ensures data is properly aligned when transferring data from 40-bit accumulators to 16-bit data memory space

Bit discovery instructions are provided to facilitate normalization. They are used to find significant data among sign extended and saturated fields. These instructions assume the operands are signed, i.e. bit change from left instructions are looking for first bit in data field, not including the sign bit.

Instruction Description
FBCL Find First Bit Change from Left
FF1L Find First One from Left
FF1R Find First One from Right

Positive Fractional Data Example

  1. Load ACCA with number to be normalized
  2. Find beginning of data from sign bit, put into W1
  3. Shift ACCA by value in W1, store it into W0
PositiveFractionalExample.png
  • Notice that we now are using 16-bits of data instead of 12-bits
© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.