In center align mode SPWM generation may I need give the same CCR value in the LUT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-27 08:08 AM
Hi ,
In SPWM generation ,in Center align mode ,May i require give one sine table value twice , in the upword and down counting sequence .
Original sine wave values: [A1, A2, A3, ..., A200]
DMA array: [A1, A1, A2, A2, A3, A3, ..., A200, A200]
like wise the DMA array ?
other wise is it distroted ?
Solved! Go to Solution.
- Labels:
-
DMA
-
STM32F4 Series
-
TIM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-28 02:23 AM
Hello,
In center-aligned PWM mode, the counter counts both up and down within a single period. This means that each value in the sine wave table will be used twice: once during the up-counting phase and once during the down-counting phase. I think you should try to provide each sine table value twice in the DMA array
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-27 08:15 AM
It depends on how your values are generated, but you are not required to duplicate values and doing so will make your sine wave more distorted, in general.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-27 08:28 AM
if it duplicate , in one pwm cycle there are two ccr value , is it distrote the wave . please how do i to get a smooth sinewave ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-08-28 02:23 AM
Hello,
In center-aligned PWM mode, the counter counts both up and down within a single period. This means that each value in the sine wave table will be used twice: once during the up-counting phase and once during the down-counting phase. I think you should try to provide each sine table value twice in the DMA array
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
