Access order of CCM_CSCDR1 register in i.MXRT1050

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Access order of CCM_CSCDR1 register in i.MXRT1050

跳至解决方案
865 次查看
KatsumiKaneko
Contributor I

I am building an SD driver.
It is working, but I have not found a clear description of the access order of the CCM_CSCDR1 register.
If anyone knows, I would appreciate a comment.

I am accessing them in the following order

1: Write CG0, CG1, CG2, of CCM_CCGR6
2: Write MOD_EN_USDHC in CCM_CMEOR
3: Write USDHC1_CLK_SEL in CCM_CSCMR1
4: Write USDHC1_PODF in CCM_CSCDR1

However, CCM_CSCMR1 and CCM_CSCDR1 have the following description.

Any change on the above multiplexer will have to be done while the module that its clock is affected is not functional and the clock is gated. If the change will be done during operation of the module, then it is not guaranteed that the modules operation will not be harmed.

Any change on the above dividers will have to be done while the module that its clock is affected is not functional and the affected clock is gated. If the change will be done during operation of the module, then it is not guaranteed that the modules operation will not be harmed.

I think 1 and 2 need to be done after 3 and 4, but what is the correct order?

0 项奖励
回复
1 解答
854 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @KatsumiKaneko ,

You can close the clock gate before change divider. After that open CG again.

 

Regards,

Jing

在原帖中查看解决方案

2 回复数
855 次查看
jingpan
NXP TechSupport
NXP TechSupport

Hi @KatsumiKaneko ,

You can close the clock gate before change divider. After that open CG again.

 

Regards,

Jing

852 次查看
KatsumiKaneko
Contributor I

Hello Jing-san.

Thank you for your comment.

I will make sure to close the clock gate before changing the divider.

Thanks very much!

0 项奖励
回复