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.

TMS320F28P550SJ: What happens if the user set CPU_SYS_REGS.PCLKCRx bits again during runtime when they are already set?

Part Number: TMS320F28P550SJ
Other Parts Discussed in Thread: C2000WARE

Hi champs,

 

I am asking this for our customer.

If CPU_SYS_REGS.PCLKCRx bits have been set and then the user set them again during runtime, is there any negative effect? 

Or it will do nothing?

 

  • Hi Wayne,

    Which CPU_SYS_REGS.PCLKCRx are you specifically referring to? Even with PCLKCR0.TBCLKSYNC, writing 1 to any of the other registers when already set to 1 should be okay, though I do not see why that is needed. I tried this on my setup and don't see any issues, but I still wouldn't recommend this unnecessary write. 

    In general, 

    Best Regards,

    Aishwarya

  • Hi Aishwarya,

    In fact, I meant not only TBCLKSYNC but also all other bits for clocking.

    What happens if these bits (clocking) have been already enabled, and then user set them again in the codes. 

    Will this impact the modules which are running?

    The user hopes these unnecessary writes do not affect anything.

    This is used for some special cases and code modularization.

  • Wayne,

    Yes, there should be no effect as mentioned before because you are just writing a 1 to a register that is already set to logic high.

    Best Regards,

    Aishwarya

  • Hi Aishwarya,

    Thank you.

    In fact, just realize that our examples show in this way.

    For example, 

    C:\ti\c2000\C2000Ware_6_00_01_00\driverlib\f28p55x\examples\led

    The peripherals clocks (CPU_SYS_REGS.PCLKCRx) are enabled the first time in 

    Device_init();
    And for the second time in 
    Board_init();