3 Replies Latest reply on Feb 17, 2019 6:37 PM by RyYo_1406951

    PSoC4100SP:PWM(TCPWM) CompareRegister Change Timing

    RyYo_1406951

      The same question is written in English and Japanese.

      ・Einglish
      I am rewriting the Compare value (TCPWM_CNTx_CC) using DMA.
      At what timing will the rewritten Compare value be reflected?

      https://community.cypress.com/message/171618
      In the above thread (PSoC5LP PWM [UDB]), there was description as follows.
      If you write the compare value less than the counter value, the PWM will process the compare value in the next overflow cycle ( Counter will overflow and restart from beginning and the new compare value will be processed).
      If the compare value is greater than the counter value, the PWM will process it in the same cycle.

      Will PWM of PSoC 4 SP also behave similarly?

       

      ・Japanese
      DMA使用し、Compare値(TCPWM_CNTx_CC)を書き換えています。
      書き換えたCompare値はどのタイミングで反映されますか?

      https://community.cypress.com/message/171618
      上記スレッド(PSoC5LP PWM[UDB])で、以下のような言葉がありました。
      If you write the compare value less than the counter value, the PWM will process the compare value in the next overflow cycle ( Counter will overflow and restart from beginning and the new compare value will be processed).
      If the compare value is greater than the counter value, the PWM will process it in the same cycle.

      PSoC4SPのPWMも同じような動作になるのでしょうか?