Difference between revisions of "HANcoder/STM32/Blocks/Get Last Event Counter"
From OpenMBD
(Created page with "{{HANcoder/block| info= This block reads the timer channel's timestamp of the 16-bit free running counter value at which the last output compare event occurred. |blockIma...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
info= | info= | ||
This block reads the timer channel's timestamp of the 16-bit free running counter value at which the last output compare event occurred. | This block reads the timer channel's timestamp of the 16-bit free running counter value at which the last output compare event occurred. | ||
− | |||
− | |||
− | |||
− | |||
|blockImage=GetLastEventCounter.png | |blockImage=GetLastEventCounter.png | ||
+ | |maskImage=GetLastEventCounterMask.png | ||
+ | |TimerOutputPin= Selects the timer channel | ||
+ | }} | ||
+ | == Outputs (outports) == | ||
+ | Counter value of last event.[uint16] | ||
− | | | + | == Block parameters == |
− | + | {| class="wikitable" | |
− | | | + | |- |
+ | ! style="width:150px" | Parameter | ||
+ | ! Description | ||
+ | |- | ||
+ | | Timer input pin | ||
+ | | Select the timer pin to use | ||
+ | |- | ||
+ | | Sample time | ||
+ | | The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz | ||
+ | |} | ||
+ | {{HANcoder/BlockFooter| | ||
+ | |SeeAlso = [[HANcoder/STM32/Blocks/Compare_Event_IRQ| Compare Event IRQ]] {{!}} [[HANcoder/STM32/Blocks/Get_Free_Running_Counter| Get Free Running Counter]] {{!}} [[HANcoder/STM32/Blocks/Output_Compare_Init| Output Compare Init]] {{!}} [[HANcoder/STM32/Blocks/Reset_Free_Running_Counter| Reset Free Running Counter]] {{!}} [[HANcoder/STM32/Blocks/Schedule_Compare_Event| Schedule Compare Event]] | ||
}} | }} |
Latest revision as of 10:27, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about Get Last Event Counter
This block reads the timer channel's timestamp of the 16-bit free running counter value at which the last output compare event occurred.
Block
Mask
Outputs (outports)
Counter value of last event.[uint16]
Block parameters
Parameter | Description |
---|---|
Timer input pin | Select the timer pin to use |
Sample time | The block execution time, the amount of time between consecutive executions of the block. 0.1 means the the block will be executed at 10 Hz |
See Also
Compare Event IRQ | Get Free Running Counter | Output Compare Init | Reset Free Running Counter | Schedule Compare Event