Download Getting Started with dsPIC30F Digital Signal Controllers User's Guide
Transcript
Getting Started with dsPIC30F Digital Signal Controllers 1.2.6 Modulo and Bit-Reversed Addressing Modulo addressing allows circular buffers to be implemented with no processor overhead to check the boundaries of the buffer. The pointer for the buffer can be set up to automatically wrap around to the beginning of the buffer after it reaches the end and vice versa. This can be done in both X and Y memory, significantly reducing the overhead for DSP algorithms. Bit-reversed addressing greatly simplifies input or output data reordering for radix-2 FFT algorithms. Bit-reversed addressing is supported by X memory. 1.2.7 Program Space Visibility The upper 32 Kbytes of the data space memory map can optionally be mapped into program space at any 16K program word (32-Kbyte) boundary defined by the 8-bit Program Space Visibility Page (PSVPAG) register. The program-to-data space mapping feature lets any instruction access program space as if it were data space. This capability is useful for look-up tables, especially tables of filter coefficients in DSP algorithms. FIGURE 1-3: PROGRAM SPACE VISIBILITY Processor Core Program Bus 24 Data Bus 16 Data Memory Program Memory 1.2.8 Instruction Set The dsPIC30F instruction set has two classes of instructions: MCU instructions and DSP instructions. These two instruction classes are seamlessly integrated into the architecture and are carried out from a single execution unit. The instruction set includes many addressing modes and was designed for optimum C compiler efficiency. With just a few exceptions, instructions execute in a single cycle. The exceptions are instructions that change the program flow (BRA, CALL, etc.), the double-word move (MOV.D) instruction and program memory read/write (table) instructions. For most instructions, the dsPIC30F is capable of executing a data memory read, a working register data read, a data memory write and a program memory (instruction) read, all during one instruction cycle. As a result, three-operand instructions can be supported, allowing A + B = C type operations to be executed in a single cycle. DS70151A-page 10 © 2005 Microchip Technology Inc.