RT1060 - How to set LCD pixel clock?

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

RT1060 - How to set LCD pixel clock?

跳至解决方案
2,450 次查看
BlackTurbo
Contributor III

Hi,

I'm working on a project base on RT1060, to boot our LCD the pixel clock rate need to modified based on the evaluated board demo.

Could you tell me how I can set this clock value? I need to set it as 40Mhz according to the LCD datasheet.

I've already read below thread: https://community.nxp.com/t5/i-MX-RT/iMX-RT1062-SDK-LCD-clocking/td-p/858724, but I still don't understand how to get the value set. Could you explain how below function work to calculate the clock rate value? Thanks. @Hui_Ma 

CLOCK_SetMux(kCLOCK_LcdifPreMux, 2);

CLOCK_SetDiv(kCLOCK_LcdifPreDiv, 4);

CLOCK_SetDiv(kCLOCK_LcdifDiv, 3);

0 项奖励
回复
1 解答
2,424 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) So every time I need to use Config Tool of Clock to calculate the clock rate then update the code to get the target clock, right?
-- In general, it's right.
2) CLOCK_GetFreq() function is able to provide the required clock's frequency, but there's no function to indicate the CPU usage in the SDK library until now.
Have a great day,
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,444 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Above three functions are used to configure the CCM_CSCDR2[LCDIF_PRE_CLK_SEL], CCM_CSCDR2[LCDIF_PRED],
CCM_CBCMR[LCDIF_PODF] bits to set the LCDIF clock just like the figure shows.

jeremyzhou_0-1615449468691.png


Have a great day,
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
2,426 次查看
BlackTurbo
Contributor III

Thanks for your reply.

So every time I need to use Config Tool of Clock to calulate the clock rate then update the code to get the target clock, right? This seems the easyest way to change the clock.

My another question is: could you tell me which API can be used to get below values?:

1. Core Clock

2. LCDIF Clock

3. CPU usage

标记 (1)
0 项奖励
回复
2,425 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) So every time I need to use Config Tool of Clock to calculate the clock rate then update the code to get the target clock, right?
-- In general, it's right.
2) CLOCK_GetFreq() function is able to provide the required clock's frequency, but there's no function to indicate the CPU usage in the SDK library until now.
Have a great day,
TIC

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

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复