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.

CCS/UCD3138PFCEVM-026: what operation is necessary after modify values in register in order to save the changed-value?

Part Number: UCD3138PFCEVM-026
Other Parts Discussed in Thread: UCD3138

Tool/software: Code Composer Studio

if I modified a value by memory debugger, in register, (PWR026_PFC)

the value will return initial condition automatically,

what should I do to avoid this phenomenon?

  • Audrey,

    Is the device halted when you attempt to modify the register value?  On UCD3138 it is necessary for the device to be halted to modify memory or memory mapped registers.  What is the name of the register?  I searched the register definition files for UCD3138 and didn't see a register called PWR026_PFC.  I wanted to check if it was a read-only register.

    Regards,

    John

  • The register named Filter1Regs.FILTERYNCLPHI.bit.YN_CLAMP_HIGH,

    we want to modify the value in the register above,  to reduce the maximum duty. 

  • The memory debugger can change registers with the processor running.  It's only JTAG that can't change things without halting the processor.  

    I tried writing to the register you mention in the PFC code, and I didn't have any trouble.  It is written to when the device is reset.  It's written to in main.c, when init_filters is called.  So if you want to change the value for future execution of the code, you need to change the value written in that function.  But you should have no problem writing while the code is executing.  If you still have a problem, please give more information about the sequence of events you are seeing.  In general, please give more detailed information up front, so we can answer your question more quickly and efficiently.