Schedule Compare Event

Schedules the next output compare event.

Description

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.

Input
Counter
Value of the timer module's 16-bit free running counter at which the event should trigger.
The used datatype is of uint16.
Action
Action to take on the channel's pin when the event triggers: The used datatype is of uint8.
Parameters
Timer Output Pin
Selects the timer channel.
Sample time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model.