Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN4013 Datasheet(PDF) 16 Page - STMicroelectronics

Part # AN4013
Description  The purpose of this document
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4013 Datasheet(HTML) 16 Page - STMicroelectronics

Back Button AN4013 Datasheet HTML 12Page - STMicroelectronics AN4013 Datasheet HTML 13Page - STMicroelectronics AN4013 Datasheet HTML 14Page - STMicroelectronics AN4013 Datasheet HTML 15Page - STMicroelectronics AN4013 Datasheet HTML 16Page - STMicroelectronics AN4013 Datasheet HTML 17Page - STMicroelectronics AN4013 Datasheet HTML 18Page - STMicroelectronics AN4013 Datasheet HTML 19Page - STMicroelectronics AN4013 Datasheet HTML 20Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 16 / 37 page
background image
General-purpose timer modes
AN4013
16/37
DocID022500 Rev 4
2.6
Timer one pulse mode
One pulse mode (OPM) is a particular case of the input capture mode and the output
compare mode. It allows the counter to be started in response to a stimulus and to generate
a pulse with a programmable length after a programmable delay.
To configure the timer this mode:
1.
Configure the input pin and mode:
a)
Select the TIxFPx trigger to be used by writing CCxS bits in CCMRx register.
b)
Select the polarity of the input pin by writing CCxP and CCxNP bits in CCER
register.
c)
Configure the TIxFPx trigger for the slave mode trigger by writing TS bits in SMCR
register.
d)
Select the trigger mode for the slave mode by writing SMS = 110 in SMCR
register.
2.
Configure the output pin and mode:
a)
Select the output polarity by writing CCyP bit in CCER register.
b)
Select the output compare mode by writing OCyM bits in CCMRy register (PWM1
or PWM2 mode).
c)
Set the delay value by writing in CCRy register.
d)
Set the auto reload value to have the desired pulse: pulse = TIMy_ARR -
TIMy_CCRy.
3.
Select the one pulse mode by setting the OPM bit in CR1 register, if only one pulse is to
be generated. Otherwise this bit should be reset.
Delay = CCRy/(TIMx_CLK/(PSC + 1))
Pulse-Length = (ARR - CCRy)/(TIMx_CLK/(PSC + 1))
For more details on using the timer in this mode, refer to the examples provided in the
STM32xx standard peripheral libraries, in the /Project/STM32xx_StdPeriph_Examples/
TIM/OnePulse folder.
2.7
Timer Asymmetric PWM mode available for
STM32F30x and STM32F3x8 lines
The asymmetric mode allows generating a center-aligned PWM signals with a
programmable phase shift. For a dedicated channel, the phase shift and the pulse length
are programmed using the two TIMx_CCRx register (TIMx_CCR1 and TIMx_CCR2 or
TIMx_CCR3 and TIMx_CCR4), the frequency is determined by the value of the TIMx_ARR
register. So the asymmetric PWM mode can be selected independently on two channels by
programming the OCxM bits in TIMx_CCMRx register:
OCxM = 1110 to use the Asymmetric PWM1, in this mode the output reference has
the same behavior as in PWM1 mode. When the counter is counting up the output
reference is identical to OC1/3REF, when the counter is down counting, the output
reference is identical to OC2/4REF
OCxM = 1111 to use the Asymmetric PWM2, in this mode the output reference has the
same behavior as in PWM2 mode. When the counter is counting up the output
reference is identical to OC1/3REF, when the counter is down counting, the output
reference is identical to OC2/4REF



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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