| Motore di ricerca datesheet componenti elettronici |
|
AN2281 Scheda tecnica(PDF) 7 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2281 Scheda tecnica(HTML) 7 Page - STMicroelectronics |
|
7 / 38 page ![]() AN2281 Implementation on the ST7LITE35 microcontroller 7/38 In dual timer mode, PWM2 and PWM3 can be generated with a different frequency controlled by CNTR2 and ATR2. The duty cycle is selected by programming the DCRx registers. These are preload registers. The DCRx values are transferred in active duty cycle registers after an overflow event if the corresponding transfer bit (TRANx bit) is set. The TRAN1 bit controls the PWMx outputs driven by counter 1 and the TRAN2 bit controls the PWMx outputs driven by counter 2. PWM generation and output compare are done by comparing these active DCRx values with the counter. Figure 5. The dual 12-bit autoreload timer: dual timer mode (ENCNTR2=1) At reset, the counter starts counting from 0. When an upcounter overflow occurs (OVF event), the preloaded Duty cycle values are transferred to the active Duty Cycle registers and the PWMx signals are set to a high level. When the upcounter matches the active DCRx value the PWMx signals are set to a low level. To obtain a signal on a PWMx pin, the contents of the corresponding active DCRx register must be greater than the contents of the ATR register. The polarity bits can be used to invert any of the four output signals. The inversion is synchronized with the counter overflow if the corresponding transfer bit in the ATCSR2 register is set. The PWMx output signals can be enabled or disabled using the OEx bits in the PWMCR register. PWM0 PWM1 PWM2 PWM3 Dead Time Generator PWM3 Duty Cycle Generator 12-bit Input Capture 12-Bit Autoreload Register 2 12-Bit Upcounter 2 PWM2 Duty Cycle Generator PWM1 Duty Cycle Generator PWM0 Duty Cycle Generator 12-Bit Autoreload Register 1 12-Bit Upcounter 1 Clock Control Output Compare CMP Interrupt OVF1 interrupt OVF2 interrupt Edge Detection Circuit OE0 OE1 OE2 OE3 ATIC DTE bit BPEN bit |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |