Central Processor Unit (Cpu) Registers; Status Register (Sr) - Motorola DSP56303 User Manual

24-bit digital signal processor
Table of Contents

Advertisement

In these modes, the bootstrap program expects the following data sequence when
downloading the user program through an external port:
1.
Three bytes that specify the number of (24-bit) program words to load
2.
Three bytes that specify the (24-bit) start address where the user program loads in the
DSP56303 program memory
3.
The user program (three bytes for each 24-bit program word)
Note:
The three bytes for each data sequence are loaded least significant byte first.
When the bootstrap program finishes loading the specified number of words, it jumps to the
specified starting address and executes the loaded program.
4.3

Central Processor Unit (CPU) Registers

There are two CPU registers that must be configured to initialize operation. The Status
Register (SR) selects various arithmetic processing protocols and contains several status
reporting flag bits. The Operating Mode Register (OMR) configures several system operating
modes and characteristics.
4.3.1

Status Register (SR)

The Status Register (SR) (Figure ) is a 24-bit register that indicates the current system state of
the processor and the results of previous arithmetic computations. The SR is pushed onto the
system stack when program looping is initialized or a JSR is performed, including long
interrupts. The SR consists of the following three special-purpose 8-bit control registers:
n
Extended Mode Register (EMR) (SR[23–16]) and Mode Register (MR) (SR[15–8])
—These special-purpose registers define the current system state of the processor. The
bits in both registers are affected by hardware reset, exception processing, ENDDO
(end current DO loop) instructions, RTI (return from interrupt) instructions, and TRAP
instructions. In addition, the EMR bits are affected by instructions that specify SR as
their destination (for example, DO FOREVER instructions, BRKcc instructions, and
MOVEC). During hardware reset, all EMR bits are cleared. The MR register bits are
affected by DO instructions, and instructions that directly reference the MR (for
example, ANDI, ORI, or instructions, such as MOVEC, that specify SR as the
destination). During processor reset, the interrupt mask bits are set and all other bits are
cleared.
n
Condition Code Register (CCR) (SR[7–0])—Defines the results of previous arithmetic
computations. The CCR bits are affected by Data Arithmetic Logic Unit (Data ALU)
operations, parallel move operations, instructions that directly reference the CCR (for
example, ORI and ANDI), and instructions that specify SR as a destination (for
Central Processor Unit (CPU) Registers
Core Configuration
4-9

Advertisement

Table of Contents
loading

Table of Contents