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.

AWR1443: scaling of PMIC_CLKOUT Frequency slope (register DCDCCTL0)

Part Number: AWR1443
Other Parts Discussed in Thread: AWR1243

How can I calculate the value to be written to DCDCCTL0, to reach a defined dithering slope for the PMIC_CLKOUT? For example 15 kHz. I saw that the period is dependent on the settings of ECTCLKDIV and even the min / max frequencies in DCDCCTL1, but I cannot find the exact formula in the reference manual.

  • Hi Benjamin,

    Please provide us some time to check this setting to get the required PMIC clock.

    Regards,

    Jitendra

  • Hi Benjamin,

    In AWR1243 we have an API to configure PMIC clock out. Based on that here is the code snippet to configure the PMIC clock in AWR1443/16/18xx devices.

    Please refer ICD (SBID 0x4048) for equivalent of API and its parameters.

    /* PMIC Clockout configuration */
    typedef struct
    {
        uint8      pmicClkOutEn;         /* PMIC clockout enable control. */
        uint8      pmicClkOutSrc;        /* PMIC clockout source clock.  */
        uint8      pmicClkSrcDiv;        /* Divide value to be applied to the source clock.*/
        uint8      modeSel;              /* Continuous mode or Chirp-chirp staircase mode*/
        uint32     freqSlope;            /* Frequency slope value to be applied in [8.18] format*/
        uint8      minNdivVal;           /* Min allowed divider value */
        uint8      maxNdivVal;           /* Max allowed divider value */
        uint8      clkDitherEn;          /* Clock dither enable */
        uint8      reservedMcu;          /* Reserved.  */

    } pmicClockCfg_t;

    /* Set the required value in this config */
    pmicClockCfg_t pmicClkCfg;
    /* Refer the ICD document for detail of each parameters [Sub block 0x4048] */
    pmicClkCfg.pmicClkOutEn = 1;
    pmicClkCfg.pmicClkOutSrc = 0; /* CLK Src XTAL: 40MHz */
    pmicClkCfg.pmicClkSrcDiv = 250; /* 40M/250 = 160 KHz */
    pmicClkCfg.modeSel = 0;
    pmicClkCfg.freqSlope =0;
    pmicClkCfg.minNdivVal = 249;
    pmicClkCfg.maxNdivVal = 251;
    pmicClkCfg.clkDitherEn = 0;

    /* PMIC clockout enable request is issued*/
    /* Disable the clock by gating off the clock */
    toprcmREG->EXTCLKCTL[15:8] = 0xAD;

    /* Setup the clock divider value */
    toprcmREG->EXTCLKDIV[15:8] = pmicClkCfg.pmicClkSrcDiv;

    /* Select the source of the PMIC clock */
    toprcmREG->EXTCLKSRCSEL[11:8] = pmicClkCfg.pmicClkOutSrc;

    /* Disable the dithering control block */
    toprcmREG->DCDCCTL1[1] = 0U;
    /* Setup the mode of operation */
    toprcmREG->DCDCCTL1[8] = pmicClkCfg.modeSel;
    /* Setup the divider value */
    toprcmREG->DCDCCTL1[23:16] = pmicClkCfg.minNdivVal;
    toprcmREG->DCDCCTL1[31:24] = pmicClkCfg.maxNdivVal;

    /* Setup the frequency slope */
    toprcmREG->DCDCCTL0[25:0]= pmicClkCfg.freqSlope;
    /* Setup the clock dither control */
    toprcmREG->DCDCCTL1[9] = pmicClkCfg.clkDitherEn;
    /* Enable the dithering control block */
    toprcmREG->DCDCCTL1[1] = 1U;
    /* Ungate the PMIC clockout */
    toprcmREG->EXTCLKCTL[15:8] = 0x0U;

    Hope this helps you to configure the PMIC clock out signal.

    Regards,

    Jitendra

  • Hello Jitendra,

    thanks for the answer,

    Unfortunately I'm not familiar with the 1243 derivate and its interface documentation.

    The example fills the content from a structure into the registers, in this case the slope is simply 0.

    Can you please provide me the documentation snippet how to calculate the content for freqSlope, based on a desired slope frequency in kHz?

    The rest of the PMIC clockout config is clear to me.

    Best Regards, Benjamin

  • Hi Benjamin,

    Here is the detail of each parameter of pmicClockCfg_t structure.

    TopRCM is defined in ti\drivers\soc\include\reg_toprcm_xwr14xx.h of mmwave SDK 2.1

    All these registers are defined and explained in TRM- http://www.ti.com/lit/ug/swru520c/swru520c.pdf

    There is no separate document but above TRM for the detailed info.

    Regards,

    Jitendra

  • Thank you, Jitendra! The information about the number format finally helped me to understand it