MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
EWM Peripheral and Driver Overview

Peripheral feature and how this peripheral works

Features

How this driver is designed to make this peripheral work

This driver provides interfaces to initialize the EWM peripheral, then user can enable/disable interrupt on demand. For watch dog, there's a refresh function to reload it.

How to use this driver

Typical Use Case

EWM is used to monitor the flow and execution of embedded software within an MCU, refresh operation should be periodically done, if the EWM is not refreshed in specified time window, EWM_Out signal will be asserted to to reset or place the external circuit into safe mode.

App_Function
{
EWM_Init(EXAMPLE_EWM, &sConfig);
xxxxx //set up periodical timer to refresh EWM
if(timerISR) // when timer interrupt happens, refresh EWM
{
EWM_Refresh(EXAMPLE_EWM);
}
}