Alessandro Angelino / target-mcu-k64f

Fork of target-mcu-k64f by Morpheus

Embed: (wiki syntax)

« Back to documentation index

_hw_ftm_cntin Union Reference

_hw_ftm_cntin Union Reference

HW_FTM_CNTIN - Counter Initial Value (RW) More...

#include <MK64F12_ftm.h>


Detailed Description

HW_FTM_CNTIN - Counter Initial Value (RW)

Reset value: 0x00000000U

The Counter Initial Value register contains the initial value for the FTM counter. Writing to the CNTIN register latches the value into a buffer. The CNTIN register is updated with the value of its write buffer according to Registers updated from write buffers. When the FTM clock is initially selected, by writing a non-zero value to the CLKS bits, the FTM counter starts with the value 0x0000. To avoid this behavior, before the first write to select the FTM clock, write the new value to the the CNTIN register and then initialize the FTM counter by writing any value to the CNT register.

Definition at line 761 of file MK64F12_ftm.h.