| 数据搜索系统,热门电子元器件搜索 |
|
AN2154 数据表(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2154 数据表(HTML) 7 Page - STMicroelectronics |
|
7 / 16 page ![]() AN2154 The PWM generator block of ST7MC motor control peripheral for SVPWM 7/16 2 The PWM generator block of ST7MC motor control peripheral for SVPWM This section provides a basic functional description of the 12 bit PWM generator embedded into the ST7MC motor control peripheral. Figure 3 schematizes the block diagram of the PWM generator. The 3 PWM signals are generated using a freerunning 12-bit PWM Counter and three 13-bit Compare registers for phase U, V and W: MCMPU, MCMPV and MCMPW registers. A fourth 12-bit register (MCMP0) is needed to set up the PWM carrier frequency. All three PWM signals (Phases U, V and W) are then directed to the channel manager, in which dead time may be added. The 12-bit PWM Counter clock is supplied through a 3-bit prescaler to allow the generation of lower PWM carrier frequencies. It divides Fmtc by 1, 2, 3,..., 8 to get Fcounter. The PWM generator can work in center-aligned or edge-aligned mode, depending on the CMS bit setting in the MPCR register: ● Center-aligned Mode (CMS bit = 1): In this operating mode, the PWM Counter counts up to the value loaded in the 12-bit Compare 0 register (MCMP0). Subsequently it counts down until it reaches zero and restarts counting up. The PWM signals are set to '0' when the PWM Counter reaches, in counting up, the corresponding 13-bit Compare register value, and they are set to '1' when the PWM Counter reaches the 13-bit Compare value again in counting down. Figure 4 shows a center-aligned PWM waveform, where the Compare 0 register value is equal to 8. ● Edge-aligned Mode (CMS bit = 0): In this operating mode, the PWM Counter counts up to the value loaded in the 12-bit Compare Register. Then the PWM Counter is cleared and it restarts counting up. The PWM signals are set to '0' when the PWM Counter reaches, in counting up, the corresponding 13-bit Compare register value, and they are set to '1' when the PWM Counter is cleared. Figure 5 shows an edge-aligned PWM waveform, where the Compare 0 register value is equal to 8. Both in center-aligned and edge-aligned modes, the four Compare registers (one Compare 0 and three for the U, V and W phases) are updated (and an Update 'U' event interrupt is generated if enabled) when the PWM counter underflows or overflows, and the 8-bit Repetition countdown has reached zero.This means that data is transferred from the preload compare registers to the compare registers every N cycles of the PWM Counter, where N is the value of the 8-bit Repetition register in edge-aligned mode. When using center- aligned mode, the repetition countdown is decremented every time the PWM counter overflows or underflows. Although this limits the maximum number of repetitions to 128 PWM cycles, this makes it possible to update the duty cycle twice per PWM period. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |