| 数据搜索系统,热门电子元器件搜索 |
|
L9803 数据表(PDF) 62 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
L9803 数据表(HTML) 62 Page - STMicroelectronics |
|
62 / 126 page ![]() On-Chip Peripherals L9803 62/126 Load the DUTYREG register with the value corresponding to the pulse length (in internal cycle periods). The 16 bits of this register are separated in two registers: DUTYREGH and DUTYREGL. The counter is reset to zero when EN_PWM bit is reset. Writing the DUTYREG and CYREG registers has no effect on the current PWM cycle. The cycle or duty cycle change take place only after the first overflow of the counter. The suggested procedures to change the PWM parameters are the following: Duty Cycle control: – Write the low and high DUTYREG registers. A writing only on one DUTYREG register has no effect until both registers are written. The current PWM cycle will be completed. The new duty cycle will be effective at the following PWM cycle, with respect to the last DUTYREG writing. Cycle control: – Write the low and high CYREG register A writing only on one CYREG register has no effect until both registers are written. The current PWM cycle will be completed. The new cycle will be effective at the following PWM cycle, with respect to the last CYREG writing. Another possible procedure is: – Reset the EN_PWM bit. – Write the wanted configuration in CYREG and DUTYREG.. – Set the EN_PWM bit. If the EN_PWM bit is set after being reset, the current values of DUTYREG and CYREG are determining the output waveform, no matter if only the low or the high part, or both were written. The first time EN_PWM is set, if CYREG and DUTYREG were not previously written, the output is permanently low, because the default value of the registers is 00h. Changing the Prescaler ratio writing PS(2:0) in CONREG has immediate effect on the waveform frequency. 5.3.2 Functional Description The PWM module consists of a 16-bit counter, a comparator and the cycle generation logic. PWM Generation The counter increments continuously, clocked at internal clock generated by prescaler. Whenever the 16 bits of the counter (defined as the PWM counter) overflow, the output level is set. The overflow value is defined by CYREG register. The state of the PWM counter is continuously compared to the PWM binary weight, as defined in DUTYREG register, and when a match occurs the output level is reset. |
|
链接网址 |
| 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 |