| 数据搜索系统,热门电子元器件搜索 |
|
ST52F510 数据表(PDF) 74 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST52F510 数据表(HTML) 74 Page - STMicroelectronics |
|
74 / 106 page ![]() ST52F510/F513/F514 74/106 When the Timers are in Reset status, or when the device is reset, the TxOUT pins goes in threestate. If these outputs are used to drive external devices, it is recommended that the related pins be left in the default configuration (Input threestate) or change them in this configuration. In PWM mode the PWM/Timers can only be Set or Reset: Start/Stop signals do not affect the Timers. TxRES resets the content of the 16-bit counter to zero. It is generated by writing 0 in the corresponding TxRES bit of the PWMx_CR1 Configuration Register and/or it can be driven by the TRES pin if it is configured (only Timer0). 12.3.1 Simultaneous Start. The PWM/Timers can be started simultaneously when working in PWM mode. The T0SYNC and T1SYNC bits in PWM0_CR3 Configuration Registers mask the reset of each timer; after enabling each single PWM/Timer. They are started by putting off the mask with a single writing in the PWM0_CR3 Register. Simultaneous start is also possible in Timer mode. The timers start counting simultaneously, but the output pulses are generated according to the modality configured (square or pulse mode). 12.4 Timer Interrupts The PWM/Timer can be programmed to generate an Interrupt Request, both on the falling and the rising of the TxOUT signal and when there’s a STOP signal (external or internal). By using the TxIES, TxIER and TxIEF bits of the Configuration Registers PWMx_CR1, the interrupt sources can be switched on/off. All the interrupt sources may be activated at the same time: sources can be distinguished by reading the PWMx_STATUS Input Register. The interrupt on the falling edge corresponds to half of a counting period in Timer mode when the waveform is set to Square Wave and to the end of the Ton phase in PWM mode. Note: when the PWM Counter is set to 0 or 65535, the interrupt occurs at the end of each control period. In order to be active, the PWM/Timers interrupts must be enabled by writing the Interrupt Mask Register (INT_MASK) in the Configuration Register Space, bits MSKT0 And MSKT1. 12.5 PWM/Timer 0 Register Description The following registers are related to the use of the PWM/Timer 0. 12.5.1 PWM/Timer 0 Configuration Registers. PWM/Timer 0 Control Register 1 (PWM0_CR1) Configuration Register 9 (09h) Read/Write Reset Value: 0000 0000 (00h) Bit 7: T0MOD PWM/Timer 0 Mode 0: Timer Mode 1: PWM Mode Bit 6: T0IES Interrupt on Stop signal Enable 0: interrupt disabled 1: interrupt enabled Bit 5: T0IEF Interrupt on T0OUT falling Enable 0: interrupt disabled 1: interrupt enabled Bit 4: T0IER Interrupt on T0OUT rising Enable 0: interrupt disabled 1: interrupt enabled Bit 3: STRMOD Start signal mode 0: start on level 1: start on edge Bit 2: T0STRT PWM/Timer 0 Start bit 0: Timer 0 stopped 1: Timer 0 started Bit 1: RESMOD Reset signal mode 0: reset on level 1: reset on edge Bit 0: T0RES PWM/Timer 0 Reset bit 0: PWM/Timer 0 reset 1: PWM/Timer 0 set 70 T0MOD T0IES T0IEF T0IER STRMOD T0STRT RESMOD T0RES |
|
链接网址 |
| 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 |