why need to plus one
古いコメントを表示
Hi,I have a problem in code generation of ePWM module. I read the oficial routine of PMSM vector control, and see the TBPD in the ePWM configuration dialog is "target.PWM_Counter_Period+1". I don't know why need to plus one.
if you know, could you tell me why need to plus one. Thanks a lot.

1 件のコメント
Walter Roberson
2021 年 12 月 16 日
ePWM -- appears to mean "enhanced Pulse Width Modulation"
PMSM -- appears to mean "permanent magnet synchronous motor"
TBPD -- I cannot find a meaning for.
採用された回答
その他の回答 (1 件)
Walter Roberson
2021 年 12 月 16 日
0 投票
The range varies from 0 to PWM_counter_period. PWM outputs when PWM up-counter matches CMPA and PWM down-counter matches CMPB
That suggests to me that there are (PWM_counter_period plus 1) different states -- for example if PWM_counter_period is 3 then states 0, 1, 2, 3 would exist, which would be 4 different states.
However, this is not a topic I have ever examined before, and this is possibly not relevant.
1 件のコメント
yeyuan zhu
2021 年 12 月 16 日
編集済み: yeyuan zhu
2021 年 12 月 16 日
カテゴリ
ヘルプ センター および File Exchange で C2000 Microcontroller Blockset についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!