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.

tms320f28335 and the allowed range for PLLCR[DIV]

Other Parts Discussed in Thread: TMDSDOCK28335, TMDSCNCD28335, TMS320F28335

The Rev 1.1 TMDSCNCD28335 controlCARD that comes with the TMDSDOCK28335 Experimenter's Kit has a 20MHz crystal connected to the f28335 processor.

Referring to Table 3-16. PLL Settings in the document SPRS439F, I don't think there are any allowed values for PLLCR[DIV] and PLLSTS[DIVSEL] that would result in a 150Mhz clock frequency.

The sprc675 Baseline Software has a flashing led example project. This example sets PLLCR[DIV] to 15 (0x0f) and does not touch PLLSTS[DIVSEL]. The boot rom leaves PLLSTS[DIVSEL] equal to 2. This appears to result in a clock frequency of 150MHz.

Is it ok to set PLLSTS[DIVSEL] to 15? Table 3-16 says this is a reserved value.

Quoting from Note 1 Table 3-16. PLL Settings in the document SPRS439F "By default, PLLSTS[DIVSEL] is configured for /4. (The boot ROM changes this to /2.) PLLSTS[DIVSEL] must be 0 before writing to the PLLCR and should be changed only after PLLSTS[PLLLOCKS] = 1."

The flashing led example does not set PLLSTS[DIVSEL] to 0 before changing PLLCR[DIV].

The function InitPll in DSP2833x_SysCtrl.h from sprc530 seems to use the correct sequence to set up the PLL, however the file DSP2833x_Examples.h only lists the allowed values for PLLCR[DIV] of 0 to 10, it does not list the reserved value of 15.

I suspect this means that to get a 150MHz clock, I should change the crystal to a 30MHz crystal like in the ezDSP kit, or a 25MHz crystal as in the Rev 1.0 TMDSCNCD28335 controlCARD.

 

 

  • The controlCard developers used the 20MHz clock so that the user would only need to make a few changes to any F280x software (runs at 100MHz) when ported to F2833x parts. It was only after production began that the developers realized that the 15x PLLCR setting is not supported.  

    Note: while the PLLCR will allow you to set this value, it is not supported and may not yield a robust design.

    The next revision of this controlCARD changes the crystal to 30MHz.

    Sorry for any confusion this has caused.

    -Lori

  • Dear Lori,

    Can I replace 20MHz crystal with 30MHz crystal?  I have 15 TMS320F28335 controlCARD and they must run at 150MHz. Please inform me, Thanks,

     

    Regards,

     

     

  • Light,

    Yes you may.  A known 30MHz replacement is part # 644-1043-1-ND from Digikey. The PLL multiplier setting (PLLCR) would then be 0xA.


    Thank you,
    Brett Larimore

  • Dear Brett

    Thanks you very much for quick response. It is good news. I have already got 30MHz crystals from Digikey but I have not replaced yet. I have got a question about the controlCARD. I would like to kindly ask you if the controlCARD is reliable for critical industrial control applications. I have already used F28335 eZdsp kit for this applications but it is more expensive and we would replace eZdsp with the controlCARD.

  • Light,

    I have heard of a few high power demo boards that work off the controlCARD (such as a 1KW rectifier and 1.5KW motor inverter application), and have heard of no issues regarding the control of these boards. After using several of the controlCARDs I would recommend them as a great alternative.


    Thank you,
    Brett Larimore