Alessandro Angelino / target-mcu-k64f

Fork of target-mcu-k64f by Morpheus

Embed: (wiki syntax)

« Back to documentation index

_hw_ftm_status Union Reference

_hw_ftm_status Union Reference

HW_FTM_STATUS - Capture And Compare Status (RW) More...

#include <MK64F12_ftm.h>


Detailed Description

HW_FTM_STATUS - Capture And Compare Status (RW)

Reset value: 0x00000000U

The STATUS register contains a copy of the status flag CHnF bit in CnSC for each FTM channel for software convenience. Each CHnF bit in STATUS is a mirror of CHnF bit in CnSC. All CHnF bits can be checked using only one read of STATUS. All CHnF bits can be cleared by reading STATUS followed by writing 0x00 to STATUS. Hardware sets the individual channel flags when an event occurs on the channel. CHnF is cleared by reading STATUS while CHnF is set and then writing a 0 to the CHnF bit. Writing a 1 to CHnF has no effect. If another event occurs between the read and write operations, the write operation has no effect; therefore, CHnF remains set indicating an event has occurred. In this case, a CHnF interrupt request is not lost due to the clearing sequence for a previous CHnF. The STATUS register should be used only in Combine mode.

Definition at line 830 of file MK64F12_ftm.h.