Difference between revisions of "HANcoder/STM32/Blocks/Schedule Compare Event"
m (Jasonvankolfschoten moved page HANcoder/Schedule Compare Event to HANcoder/STM32/Blocks/Schedule Compare Event without leaving a redirect) |
|||
Line 33: | Line 33: | ||
| 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 | | 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| | {{HANcoder/BlockFooter| | ||
− | |SeeAlso = [[HANcoder/Compare_Event_IRQ| Compare Event IRQ]] {{!}} [[HANcoder/Get_Free_Running_Counter| Get Free Running Counter]] {{!}} [[HANcoder/Get_Last_Event_Counter| Get Last Event Counter]] {{!}} [[HANcoder/Output_Compare_Init| Output Compare Init]] {{!}} [[HANcoder/Reset_Free_Running_Counter| Reset Free Running Counter]] | + | |SeeAlso = [[HANcoder/STM32/Blocks/Compare_Event_IRQ| Compare Event IRQ]] {{!}} [[HANcoder/STM32/Blocks/Get_Free_Running_Counter| Get Free Running Counter]] {{!}} [[HANcoder/STM32/Blocks/Get_Last_Event_Counter| Get Last Event Counter]] {{!}} [[HANcoder/STM32/Blocks/Output_Compare_Init| Output Compare Init]] {{!}} [[HANcoder/STM32/Blocks/Reset_Free_Running_Counter| Reset Free Running Counter]] |
}} | }} |
Latest revision as of 10:29, 5 May 2017
Supported Targets: Olimexino, E407, P405
Contents
General information about Schedule Compare Event
Schedules the next output compare event. The first input determines the value of the timer module's 16-bit free running counter when the event should trigger. The second input determines the action that should be taken on the timer channel's pin.
Action
Action to take on the channel's pin when the event triggers:
Block
Mask
Inputs (inports)
Input 1: Value of the timer module's 16-bit free running counter at which the event should trigger.[uint16]
Input 2: Select the action to take on the channel's pin when the event triggers[uint8]:
0: set output pin to logic low.
1: set output pin to logic high.
2: invert logic state of the outpin pin.
3: do nothing to the output pin.
Block parameters
Parameter | Description |
---|---|
Timer module | Select the time module 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 | Get Last Event Counter | Output Compare Init | Reset Free Running Counter