Download RM0038 Reference manual
Transcript
General-purpose timers (TIM2 to TIM5) RM0038 Figure 84. General-purpose timer block diagram )NTERNALCLOCK#+?).4 4)-X#,+FROM2## %42& %420 %42 4)-X?%42 0OLARITYSELECTIONEDGE DETECTORPRESCALER )NPUTFILTER 42'/ )42 )42 4') )42 )42 42# 42') )42 4)&?%$ 4)&0 4RIGGER CONTROLLER 3LAVE 2ESETENABLEUPDOWNCOUNT MODE CONTROLLER %NCODER )NTERFACE 4)&0 5 !UTORELOADREGISTER 3TOPCLEARORUPDOWN #+?03# 03# #+?#.4 0RESCALER 8/2 4) )NPUTFILTER EDGEDETECTOR 4)&0 4)&0 0RESCALER 42# 4)-X?#( 4) 4)-X?#( )NPUTFILTER EDGEDETECTOR 4)&0 4)&0 )#03 5 COUNTER ##) #APTURECOMPAREREGISTER /#2%& #APTURECOMPAREREGISTER /#2%& ##) )# 0RESCALER 5) 5 #.4 ##) )# TOOTHERTIMERS TO$!#!$# OUTPUT /# CONTROL 4)-X?#( ##) )#03 5 OUTPUT /# CONTROL 4)-X?#( 42# ##) 4) 4)-X?#( )NPUTFILTER EDGEDETECTOR 4)&0 4)&0 )# 0RESCALER 42# 4) 4)-X?#( )NPUTFILTER EDGEDETECTOR 4)&0 4)&0 )#03 ##) 5 #APTURECOMPAREREGISTER ##) )# 0RESCALER )#03 /#2%& OUTPUT /# CONTROL 4)-X?#( ##) 5 #APTURECOMPAREREGISTER /#2%& OUTPUT CONTROL /# 4)-X?#( 42# %42& .OTES 2EG 0RELOADREGISTERSTRANSFERRED TOACTIVEREGISTERSON5EVENT ACCORDINGTOCONTROLBIT EVENT INTERRUPT$-!OUTPUT -36 17.3 TIM2 to TIM5 functional description 17.3.1 Time-base unit The main block of the programmable timer is a 16-bit/32-bit counter with its related autoreload register. The counter can count up but also down or both up and down. The counter clock can be divided by a prescaler. The counter, the auto-reload register and the prescaler register can be written or read by software. This is true even when the counter is running. The time-base unit includes: 384/901 • Counter Register (TIMx_CNT) • Prescaler Register (TIMx_PSC): • Auto-Reload Register (TIMx_ARR) DocID15965 Rev 13
Related documents
Thesis - JFDuval
Errata sheet - STMicroelectronics
Modicon 984 Programmable Controller Systems Manual
BACHELOR THESIS
AN3413 - STMicroelectronics
ACL for Windows Version 7 Workbook
Getting started with the STM32 Nucleo board firmware package
User`s Manual Operations Manual Very Efficient Transmission
Description of STM32F30xx/31xx Standard Peripheral Library
Manual ARM Microcontroller Course E.T.S.V. Scintilla
Nor-840 User Manual - Campbell Associates
SYSMAC CX-Programmer Ver. 9._ OPERATION MANUAL