| 数据搜索系统,热门电子元器件搜索 |
|
AN1712 数据表(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1712 数据表(HTML) 9 Page - STMicroelectronics |
|
9 / 14 page ![]() 9/14 GENERATING A HIGH RESOLUTION SINEWAVE USING ST7 PWMART Figure 4. PWMART timer initialization 3.3 PWMART INTERRUPT SERVICE ROUTINE This is the interrupt service routine for the PWMART interrupt. Every time an overflow occurs, an interrupt is generated (because overflow interrupt is enabled). The PWMART duty cycle is changed after every “COUNTER” number of overflow cycles. The duty cycle can vary from ~99% to ~1% depending on the sinewave sample values. AR_TIMER_Init Start the PWM timer counter, force counter reload is ON & overflow interrupt is enabled Enable PWM0 and con- figure the polarity return Set the frequency of PWMART by initializing the ARTARR Initialize the duty cycle of sinewave to 50% |
|
|
链接网址 |
| 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 |