PSoC4100SP:PWM(TCPWM) CompareRegister Change Timing

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
RyYo_1406951
Level 5
Level 5
100 replies posted 50 replies posted 25 replies posted

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も同じような動作になるのでしょうか?

0 Likes
1 Solution
3 Replies
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted

Yes.

Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

As answered in previous post, the answer is yes.

PSoC4SPのPWMでも同じ動作になります。

回答ありがとうございました。

0 Likes