Schedule Compare Event

From OpenMBD
< HANcoder‎ | STM32‎ | Blocks
Jump to: navigation, search
Supported Targets: Olimexino, E407, P405

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

ScheduleCompareEvent.png

Mask

ScheduleCompareEventMask.png

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