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

Peripheral feature and how this peripheral works

The Event Generator module is designed to be integrated in conjuction with one or more inter-peripheral crossbar switch (XBAR) modules. A crossbar switch is typically used to select the 4 EVTG inputs from among available peripheral outputs and GPIO signals. The EVTG outputs are typically used as additional inputs to a second crossbar switch, adding to it the ability to connect to its outputs an arbitrary 4-input boolean function of its other inputs. The input/output signals are chip specific, user has to check the reference manual or data sheet for the information.

Features

How this peripheral works

EVTG module inside implements different kinds of Flip-Flop for the generation of desired EVTG output. Specific functional differences can refer to reference manual. EVTG support sync to evtg inputs and filter function to AOI output. The application scenario for both are different. Input sync feature makes evtg input sync for two bus_clk cycles. Any glitch whose width is less than a bus clk period will be removed. But for Filter, though this module works in bus_clk and have the same function as the first one, it's designed for filter. Any signal whose width is less than Filter_Delay value will be filtered. Therefore, functions should be enabled depends on the actual user case.Each selected AOI input term in each product term can be configured to produce a logical 0 or 1 or pass the true or complement of the selected event input.

How this driver is designed to make this peripheral work

This driver provide multiple APIs to configure Event Generator module. The APIs this driver provides can be classified in 3 API groups:

How to use this driver

Typical Use Case

EVTG module inside implements different kinds of Flip-Flop for the generation of desired EVTG output. Here take Bypass mode and JK-FF Mode as examples.