FAQ_MA35_Family NonOS_BSP_Modify_FrameRate(CCAP)

Post Reply
yhcheng3
Posts: 55
Joined: 02 Dec 2022, 10:46

11 Apr 2024, 15:17

Question :

MA35D1 NonOS BSP Modify Frame Rate(CCAP_SensorToDisplay)


Answer.
The sample of the HM1055 sensor in the MA35D1_NonOS_BSP has an output frame rate of only 10FPS at 720P.

The frame rate of the 720P output in the HM1055 sensor sample(~\SampleCode\StdDriver\CCAP_SensorToDisplay) is only 10FPS.

The default setting of CCAP PCLK in the code is 24MHZ, which is modified to 60MHZ. The Sensor PCLK setting clock source is specified as SYSPLL, which can output 25FPS. Modify as follows:

Code: Select all

CCAP_SetFreq(60000000);
void CCAP_SetFreq(uint32_t u32SensorFreq)
{
    ...
    i32Div = CLK_GetPLLClockFreq(SYSPLL) / u32SensorFreq;
    CLK_SetModuleClock(CCAP0_MODULE,CLK_CLKSEL0_CCAP0SEL_SYSPLL,
        CLK_CLKDIV1_CCAP0(i32Div));
    ...
}



#MA35 , #HM1055 #NonOS
.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 9 guests