This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6747---interrupt control registers on the CPU.



what are the addressesof CSR(Control status register), ICR,IER,IFR and so on..I can not find the registers addresses.

thanks.

  • Almost all of the registers in the C6747 are memory-mapped. But there is a Control Register File with about 30 registers that are not memory-mapped, and this includes the ones you listed above. These must be accessed directly by a specific assembly instruction or C construct.

    The documents you will want to look at are

    • sprufe8 - DSP CPU & Instruction Set Reference Guide [search for "control register"]
    • sprufk5 - DSP Megamodule Reference Guide [good information since you are looking at this DSP in detail]
    • spru187 - C6000 Optimizing Compiler User's Guide [search for "cregister"]
  • thank you very much

  • Hi sky,

    You can also access the non-mapped registers using C. All you have to do is to include the file c6x.h. For example:

    # include <c6x.h>

    void main (){

    int value;

    value = CSR;

    // or

    CSR = value;