MKMxxZxxACxx5 Bare Metal Software Drivers  R4.1.6
Reference Manual
TMR Count Modes

Overview

List of timer count modes.

Macros

#define COUNT_DISABLED
 No operation.
 
#define COUNT_POSEDGE
 Count rising edges of primary source.
 
#define COUNT_ANYEDGE
 Count rising and falling edges of primary source.
 
#define COUNT_POSEDGE_GATED
 Count rising edges of primary source while secondary input high active.
 
#define COUNT_QUADRATURE
 Quadrature count mode, uses primary and secondary sources.
 
#define COUNT_POSEDGE_DIRECT
 Count rising edges of primary source secondary source specifies direction.
 
#define COUNT_TRIGGERED
 Edge of secondary source triggers primary count until compare.
 
#define COUNT_CASCADED
 Cascaded counter mode (up/down)