参数资料
型号: ST52F513G1M6
厂商: STMICROELECTRONICS
元件分类: 微控制器/微处理器
英文描述: 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDSO28
封装: PLASTIC, SO-28
文件页数: 75/104页
文件大小: 644K
代理商: ST52F513G1M6
ST52F510/F513/F514
72/104
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 T0RES pin if it is configured (only Timer0).
Warning: In PWM mode, the TxSTRT signal must
be kept to 1 when the Timer is in Set state. This
can be achieved by writing 1 in the related bit of the
Configuration Register
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: T0IES 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: start on level
1: start 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
相关PDF资料
PDF描述
ST52F513G1B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F510G2B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F510G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F514G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
ST52F513G3B6 8-BIT, FLASH, 24 MHz, MICROCONTROLLER, PDIP28
相关代理商/技术参数
参数描述
ST52F513GMB6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F513GMM6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F513Y3M6 制造商:STMicroelectronics 功能描述:
ST52F513YMM6 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
ST52F514 制造商:STMICROELECTRONICS 制造商全称:STMicroelectronics 功能描述:8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI