你好:
我在配置寄存器的时候用到 CSL_REG32_WR 这个函数时,里面需要填写一个地址baseaddr+padconfigaddr 但是我在使用821的寄存器按照以上要求填写地址, 程序不能跑通。请问此处的地址该怎么填写,比如I2C0的地址是多少?
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.
寄存器地址请参考下面的文档5.1 Control Module (CTRL_MMR)
https://www.ti.com/lit/ug/spruiu1a/spruiu1a.pdf
您可以搜索base address,找到需要配置寄存器所在的表格,表格最左边一列是offset address。
base address+offset address就是寄存器的Physical address(表格最右边一列)