This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can I run Face Detect Demo at 456MHz on C6748LCDK?

Hi Champs,

Face Detect Demo run at 300MHz on C6748LCDK now, and I am trying to run the demo at 456MHz because I want to add any functions to the demo such as SD card access.

Can I do that?  If so, could you please let me know the clock settings for PLL, LCDC, VPIF and others?

Thanks in advance for your cooperation.

Regards,
j-breeze

  • Hi J-breeze,

    I hope, you can run facedetect demo at 456MHz clock on LCDK board.

    Can I do that?  If so, could you please let me know the clock settings for PLL, LCDC, VPIF and others?

    Yes. You can run the 456MHz clock on LCDK board through CCS script option after gel file loaded.

  • Hi Titus,

    Thank you for your reply.

    I can set the cpu clock to 456MHz by the gel.  But I'd like to make sure whether the demo run at 456MHz or not.

    Regards,
    j-breeze

  • Hi J-breeze,

    In LCDK board, you can measure the clock from CLKOUT (TP10) pin.

    1) You have to select (pinmuxing) CLKOUT pin through PINMUX13 register.

    2) You have to use "OSCDIV" of PLLC0 ie OBCLK to choose which SYSCLK that you are going to measure.

    In case, if you want to measure the SYSCLK1 (DSP) then you have to select OSCDIV as :0x17h" value.

    Ex:

    /* Pin Multiplexing bit mask to select CLKOUT pin. */
    #define PINMUX13_CLKOUT_7_4_ENABLE    (SYSCFG_PINMUX13_PINMUX13_7_4_OBSCLK0  << \
    										SYSCFG_PINMUX13_PINMUX13_7_4_SHIFT)
    
    #define PLLC0_OBSCLK          0x01C11104   // OBSCLK
    
    unsigned int* pllc0_obsclk      = ( unsigned int* )PLLC0_OBSCLK;
    
    
    //Use this in "gpio.c" on "platform" folder of LCDK.
    void CLKOUTPinMux13Setup(void)
    {
         unsigned int savePinmux = 0;
    
         /*
         ** Clearing the bit in context and retaining the other bit values
         ** in PINMUX13 register.
         */
         savePinmux = (HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) & ~(SYSCFG_PINMUX13_PINMUX13_7_4));
    
         /* Setting the pins corresponding to CLKOUT in PINMUX13 register.*/
         HWREG(SOC_SYSCFG_0_REGS + SYSCFG0_PINMUX(13)) =
              (PINMUX13_CLKOUT_7_4_ENABLE | savePinmux);
    
    }
    
    int main(void)
    {
    
    	CLKOUTPinMux13Setup();
    
    
    	*pllc0_obsclk = 0x17; // To measure SYSCLK1 (DSP freq)
    
    //TODO : Add LCDK facdetect demo code or add these lines into facedetect code.
    
    }