PSoC4100SP : PWM_Left align_100% Duty

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

Below, the same sentences are written in English and Japanese.

・English
I want to output 100% Duty from the line terminal with the "Left align" setting of PWM.
As shown below, an error will occur if Period = "9", Compare = "10".
Can not set Duty 100% on the component initial value setting screen?

・Japanese(日本語)
PWMを"Left align"設定で、line端子から100%Dutyを出力したいです。
以下の様に、Period="9",Compare="10"に設定した場合エラーになります。
コンポネント初期値設定画面ではDuty100%設定はできないという認識でよろしいでしょうか?

無題.png

・English
However, in the program statement (main.c), it is possible to set the Period value to "9" using the API.
※ In the component initial value setting screen, Period = "10", Compare = "10" are set.
Is 100% duty configurable when using the API?

・Japanese(日本語)
しかし、プログラム文(main.c)で、APIを使用しPeriod値を"9"を設定することは可能です。
※コンポネント初期値設定画面では、Period="10",Compare="10"に設定しております。
APIを使用したら、100%Duty設定可能という認識でよろしいでしょうか?

0 Likes
1 Solution

こちらでも確認しました。

pastedImage_0.png

上記GUI設定、Period = 10、Compare = 10で

Copy_201942121932.bmp

GUI設定、Period = 10、Compare = 11はエラーとなるのでAPIにてPeriod = 10、Compare = 11を設定。

Copy_201942122219.bmp

100% Dutyが確認。

PSoC Creator Component Datasheet "PSoC 4 Timer Counter Pulse Width Modulator (TCPWM)"のOutputのセクションに下記記述があります。

pastedImage_2.png

GUIでは現在Compare値をPeriod値より1大きくするとエラーとなるので、現状APIにて設定してください。

View solution in original post

3 Replies