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.

改写寄存器



我现在写程序都是用CSL,但是我想直接改写某个具体地址上的寄存器时,却改不了。是不是当用CSL时寄存器地址段是被保护的,不能直接对具体地址上的寄存器进行改写,只能操作CSL上的API函数进行改写?

  • 直接写寄存器是可以的。CSL仅仅是提供方便寄存器操作的方法,没有任何对于寄存器进行写或者读的保护。

    有些C6000芯片的某些外设需要使能才可以进行配置,有些寄存器需要事先进行读写操作的使能。具体情况可以参考相应芯片的datasheet。