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.

LAUNCHXL-F280025C: PLL Reference Clock Lost Detection

Part Number: LAUNCHXL-F280025C
Other Parts Discussed in Thread: C2000WARE

Hello,

i couldnot find the bits MCDCR.SYSREF_LOST_MCD_EN=1.

MCDCR consist of : 


struct MCDCR_BITS {                     // bits description
    Uint16 MCLKSTS:1;                   // 0 Missing Clock Status Bit
    Uint16 MCLKCLR:1;                   // 1 Missing Clock Clear Bit
    Uint16 MCLKOFF:1;                   // 2 Missing Clock Detect Off Bit
    Uint16 OSCOFF:1;                    // 3 Oscillator Clock Off Bit
    Uint16 rsvd1:1;                     // 4 Reserved
    Uint16 rsvd2:1;                     // 5 Reserved
    Uint16 rsvd3:1;                     // 6 Reserved
    Uint16 rsvd4:1;                     // 7 Reserved
    Uint16 rsvd5:1;                     // 8 Reserved
    Uint16 rsvd6:1;                     // 9 Reserved
    Uint16 rsvd7:6;                     // 15:10 Reserved
    Uint16 rsvd8:16;                    // 31:16 Reserved
};

AM i missing something  here ? could you please help me ?

Thanks 

Ushma 

  • Hi Ushma,

    Yes, there is an error, I will submit a ticket to get it corrected and released in next version of TRM and C2000Ware.

    Here is the actual mapping, which you can use to update your code.

     

    0 MCLKSTS Missing Clock Status Bit 0x0 R XRSn
    Missing Clock Status Bit:
        0 = OSCCLK Is OK
        1 = OSCCLK Detected Missing, CLOCKFAILn Generated
    1 MCLKCLR Missing Clock Clear Bit 0x0 R=0/W=1 XRSn
    Missing Clock Clear Bit:
        Write 1" to this bit to clear MCLKSTS bit and reset the missing clock detect circuit."
    2 MCLKOFF Missing Clock Detect Off Bit 0x0 R/W XRSn
    Missing Clock Detect Off Bit:
        0 = Missing Clock Detect Circuit Enabled
        1 = Missing Clock Detect Circuit Disabled
    3 OSCOFF Oscillator Clock Off Bit 0x0 R/W XRSn Oscillator Clock Disconnect from MCD Bit:
        0 = OSCCLK Connected to OSCCLK Counter in MCD module
        1 = OSCCLK Disconnected to OSCCLK Counter in MCD module
    4 SYSREF_LOSTS SYSPLL "Reference  Lost" Status Bit 0x0 R XRSn
    SYSPLL "Reference Lost" Status Bit: This bit indicates whether the SYSPLL is out of lock range

        0 = "Reference Lost" event has not occurred.
        1 = "Reference Lost" event has occurred.
    5 SYSREF_LOSTSCLR Clear for Ref clock lost status  0x0 R=0/W=1 XRSn Clears the REF_LOST_STS from PLLSTS which is root for MCD trigger.
    0 = No effect on present state of the REF_LOST_STS
    1 = Clears the REF_LOST_STS bit to '0'. Bit clears itself after clear pulse to REF_LOST_STS.
    Read always gives '0'.
    6 SYSREF_LOST_MCD_EN Enable for PLL REF_CLK_LOST as MCD cause 0x0 R/W XRSn Control to add "PLL reference clock lost" as cause for MCD
        0 = "PLL reference clock Lost" does not affect MCD.
        1 = Upon "PLL reference clock Lost" MCD is asserted. 
  • Hello Nirav , 

    Thanks for the quick reply was really helpful.

    ushma

  • Hello Nirav , 

    To test for the PLL conficuration , is there something similar to OSCOFF ? i think OSCOFF is only for the MCD module , and i wan to test my PLL Code so could you help me with it ?

    Thanks

    Ushma  

  • Hi Ushma,

    Yes OSCOFF is only for MCD. To test PLL configuration, you willl need to use DCC to make sure the PLL output frequency is correct. You can refer to DCC examples in C2000Ware.

    Best Regards,

    Nirav