User`s guide

Libraries and Runtime Code
EOnCE Library
349Targeting MC56F83xx/DSP5685x Controllers
Counter Unit Action Options
This list of options describes the action taken when a counter trigger is generated. One
of the defined identifiers in Table 11.10
must be OR’ed into the options parameter of
the _eonce_SetCounterTrigger function. Identifiers that include
ZERO_BEFORE_TRIGGER only perform the action when the counter counts down
to zero before the Counter Stop Trigger occurs. Identifiers that include
TRIGGER_BEFORE_ZERO only perform the action when the Counter Stop Trigger
occurs before the counter counts down to zero.
Accumulating Trigger Options
One of the defined identifiers in Table 11.11 must be OR’ed into the options parameter
of the _eonce_SetTrigger function when breakpoint unit 0 is being configured.
Table 11.10 Counter Unit Actions Options Mode
Defined Identifiers Description
NO_ACTION counter status bits still get set
UNIT_ACTION_ZERO_BEFORE_TRIGGER enters debug mode is unit 0, else passes
signal on to next unit
INTERRUPT_CORE_ZERO_BEFORE_TRI
GGER
interrupts to vector set for this unit
UNIT_ACTION_TRIGGER_BEFORE_ZERO enters debug mode is unit 0, else passes
signal on to next unit
INTERRUPT_CORE_TRIGGER_BEFORE_
ZERO
interrupts to vector set for this unit
Table 11.11 Accumulating Trigger Options Mode with Breakpoint Unit 0
Defined Identifiers Description
PREV_UNIT_OR_THIS_TRIGGER_OR_
CORE_EVENT
a trigger is generated if the previous
breakpoint unit passes in a trigger signal or
this breakpoint unit creates a trigger signal
or if a core event occurs
PREV_UNIT_THEN_THIS_TRIGGER_OR_
CORE_EVENT
a trigger is generated if the previous
breakpoint unit passes in a trigger signal
followed by either this breakpoint unit
creating a trigger signal or a core event
occurring