TimerInstance_Class

setComparator()

Description

This method sets the current value of period comparator of the timer instance (void). It is used as a reference in the Clean on Compare Match mode, as well in handling interruption.

Syntax

timer1.setComparator(value)

Parameters

timer1: a variable of type TimerInstance_Class

value: the new value for the period comparator, type: unsigned

See also

Corrections, suggestions, and new documentation can be added directly to the wiki page. Scroll to the bottom, choose "Edit Page" and use "Papilio" as the password.

  

Share |