| 数据搜索系统,热门电子元器件搜索 |
|
AN1712 数据表(PDF) 3 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1712 数据表(HTML) 3 Page - STMicroelectronics |
|
3 / 14 page ![]() 3/14 GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART configured as output push-pull alternate function. The PWM signals all have the same fre- quency which is controlled by the counter period and the ARTARR register value. When a counter overflow occurs, the PWMx pin level is changed depending on the corre- sponding OPx (output polarity) bit in the PWMCR register. When the counter reaches the value contained in one of the output compare register (OCRx) the corresponding PWMx pin level is restored. Note: The reload values will also affect the value and the resolution of the PWM output signal duty cycle. To obtain a signal on a PWMx pin, the contents of the OCRx register must be greater than the contents of the ARTARR register. The resolution for the PWMx duty cycle is: Figure 1. PWM Auto-reload Timer Function On overflow, the OVF flag of the ARTCSR register is set and an overflow interrupt request is generated if the overflow interrupt enable bit, OIE, in the ARTCSR register, is set. The OVF flag must be reset by the user software. This interrupt is used as a time base in the application. 256 - ARTARR fCOUNTER fPWM= 256 - ARTARR 1 Resolution= DUTY CYCLE REGISTER (PWMDCRx) AUTO-RELOAD REGISTER (ARTARR) 00 255 WITH OEx=1 WITH OEx=0 AND OPx=0 AND OPx=1 |
|
|
链接网址 |
| 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 |