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);
Solved! Go to Solution.
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.
-------------------------------------------------------------------------------
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.
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.
-------------------------------------------------------------------------------
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
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.
-------------------------------------------------------------------------------