The events generated by different EBC
units can be combined using OR and AND logic to generate new events as required, see
Figure 17-2. There are AND and OR combinations that can be exported using masks to suppress
undesired events. These events can be configured to generate an interrupt. 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 EVENT_AND_MASK
and OR_EVENT_MASK registers to select the desired EBC unit outputs for any
of the available four masks.
- To enable an interrupt for
the configured mask, write 1 to the corresponding bit in the AND_MASK_CTL or
OR_MASK_CTL register.
- To use the mask output as an
input to the system event counter unit, configure the SEC_INPUT_SEL1
register with the mux value for the desired mask. The input mux values are
listed in Section 17.3.1.4.
For example, to generate a real-time interrupt on MASK1 when EBC units 2, 3,
AND 6 events are triggered, write 0x26 to EVENT_AND_MASK, and then write 0x1 to
AND_MASK_CTL[INTERRUPT].