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.

TMS570LS1227: [TMS570LS12xx] Periodic Software Readback and RECOVERY of Static Configuration Registers and Software Written Configuration Registers

Part Number: TMS570LS1227
Other Parts Discussed in Thread: HALCOGEN

Dear Mr QJ Wang,

 

 

I have read in SPNU550B[1] about the possibility of the "Periodic Software Read Back of Static Configuration Registers" and the "Software Read Back of Written Configuration" and implemented them in software in CCS v9.1. This version is freezed.

 

Now I am in the process of implementing a method for restoring these registers as soon as a deviation from the intended configuration has occurred within the registers.

 

In doing so, I have encountered the problem that the TMS570LS12xx MCU only allows this to a limited extent. For example, if I rewrite the PWM configuration registers during operation, a low level immediately appears on the PWM channels. The previous PWM generation is completely terminated.

 

Is it possible to rewrite or reinitialise the PWM registers during PWM operation and continue to generate PWM undisturbed?

 

 

With my best regards

Stephan Hiegemann

 

[1] "Safety Manual for TMS570LS12x and 11x HerculesTm ARM ® -Based Safety Critical Microcontrollers User's Guide" (Literature Number: SPNU550B, October 2012 - Revised December 2015)

  • It should be fine to rewrite the PWM control registers during PWM operation. Which registers did you rewrite in your test?

    I tried to rewrite TBPRD, TBCTL, CMPA, and CMPB, and did not notice the issue.

  • Dear Mr. QJ Wang,


    thank you for your swift response.

    Based on your reply, I have reviewed the source code and discovered an incorrect code sequence.

    The re-initialization of the PWM module is now possible without gaps during the running PWM generation.


    With kind regards

    Stephan Hiegemann

  • Dear QJ Wang,

    to fully answer your question and share knowledge, here is my full answer:

    I initialize all the PWM registers that HALCoGen initializes and the registers that are recommended in the Technical Reference Manual (SPNU515C). Additionally the pin multiplexer of the TMS570LS122x-PGE MCU. .

    With my best regards
    Stephan Hiegemann