The events generated by different EBC units can be
combined using OR and AND logic to generate new events as required. There are four
AND and four OR combinations that can be exported using masks to suppress undesired
events. These events can be configured to generate an RTOSINT. In addition, the AND
and OR events can also be used to qualify CRC computation using the cyclic
redundancy check unit. The AND and OR events are also available as inputs to the
system event counter unit for event counting and system profiling.
To use the AND and OR masks:
- Configure the GLBL_EVENT_AND_MASK and GLBL_OR_EVENT_MASK registers to select
the desired EBC unit outputs for any of the available four masks.
- To enable an RTOSINT for the configured mask, write 1 to the corresponding
bit in the GLBL_AND_EVENT_INT_MASK or GLBL_OR_EVNT_INT_MASK register.
- To use the mask output as an input to the system event counter unit,
configure the CTM_INPUT_SEL register with the mux value for the desired
mask. The input mux values are listed in Section 13.3.1.4.
- To use the mask output as a qualifier to the CRC unit, configure the
CRC_QUALIFIER register.
For example, to generate a real-time interrupt on MASK1 when EBC units 2, 3,
AND 6 events are triggered, write 0x46 to GLBL_EVENT_AND_MASK, and then write 0x1 to
GLBL_AND_EVENT_INT_MSK.