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

Peripheral features and how this peripheral works

The computer operating properly (COP) module is used to help software recover from runaway code. It's a free-running down counter that, once enabled, is designed to generate a reset upon reaching zero. Software must periodically service the COP in order to reload the counter and prevent a reset.

Features

How this peripheral works

  1. Configure the COP features properly, enable COP
  2. Service periodically to prevent reset event

How this driver is designed to make this peripheral works.

The cop driver provides a structure cop_config_t which contains all the programmable features of COP. The COP_Init() function takes the argument of structure pointer to cop_config_t and configures the COP features, then enable COP. For the most simple user scenarios, only need to provide COP service function to feed the COP timer to avoid reset. But considering user may have some enhanced situation which needs to re-configure the features, such as to re-install timeout value, enable/disable interrupt functionality of COP, several function groups are designed as below:

How to use this driver