I have a core clock of 178.128 MHz and I would like to set the SDHC clock below 50 MHz. Can that be done using MCUXpresso?

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

I have a core clock of 178.128 MHz and I would like to set the SDHC clock below 50 MHz. Can that be done using MCUXpresso?

跳至解决方案
1,786 次查看
calvinday
Contributor III

If so. How?

0 项奖励
1 解答
1,550 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Calvin,

- From the SDHC clock source diagram we can see, if you select the core clock as the clock

source of SDHC , there isn't division factor  , so 178.128 MHz can't division to 50MHZ.

- I think here maybe you can choose the IRC48MCLK as the clock source :

pastedImage_1.png


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

6 回复数
1,550 次查看
calvinday
Contributor III

K66

0 项奖励
1,550 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Calvin,

Yes, of course . The SDHC module has four possible clock sources for the external clock source, as
shown in the following figure.

pastedImage_1.png

So if the core clock is 178.128 MHZ, you can select the other sources .

For example , the OSERCLK :pastedImage_2.png

Hope it helps


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
1,550 次查看
calvinday
Contributor III

I was hoping to get a clock closer to 50 MHz. My oscer clock speed is 16.384 MHz. If I select the core clock, I get an error.

0 项奖励
1,551 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Calvin,

- From the SDHC clock source diagram we can see, if you select the core clock as the clock

source of SDHC , there isn't division factor  , so 178.128 MHz can't division to 50MHZ.

- I think here maybe you can choose the IRC48MCLK as the clock source :

pastedImage_1.png


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

1,550 次查看
calvinday
Contributor III

Yes. That will work.

0 项奖励
1,550 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Calvin,

Could you please tell us the part number of your chip, thanks .


Have a great day,
TIC



0 项奖励