Accumulator Write-Back

The Accumulator Write-Back is a special feature which may be used with several DSP instructions. This method of storage allows us to use W13 or W13 indirect with post-increment as the target destination of the accumulator move, but does not allow for the data to be shifted as it is stored. The MAC class of instructions (with the exception of MPY, MPY.N, ED and EDAC) can optionally write a rounded version of the high word of the accumulator that is not targeted by the instruction into data space memory. The write is performed across the X bus into combined X and Y address space. The following addressing modes are supported:

  • W13, Register Direct:
    • The rounded contents of the non-target accumulator are written into W13 as a 1.15 fraction.
  • [W13]+ = 2, Register Indirect with Post-Increment:
    • The rounded contents of the non-target accumulator are written into the address pointed to by W13 as a 1.15 fraction. W13 is then incremented by 2 (for a word write).

Accumulator Write-Back is used extensively in FFT for the inner most butterfly operation; it is also used in LMS coefficient calculation for adaptive filters.

Accumulator Write-Back:

  • Writes back opposite accumulator
    • While one accumulator is destination for an instruction, the opposite one is idle and available to be stored
      • Useful for certain algorithms such as FFT and adaptive filters
  • Stores rounded ACCxH to W13 or [W13]+=2
    • Must be W13
    • If W13 not indicated, then no write back performed
    • Rounding type determined by CORCON<RND>

© 2017 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.