Freescale Semiconductor SC140 Event Counter Value Register Ecntval, Event Counter Enable Used to

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 162
Image 162

Event Counter Registers

Table 4-18. ECNT_CTRL Description (Continued)

Name

Description

Settings

 

 

 

 

 

 

ECNTEN

Event Counter Enable — Used to

0000 = The event is disabled.

Bits 7–4

enable the ECNT operation. When

0001 = The event counter is disabled, but is enabled

 

ECNTEN is set to 1111, ECNT is

when an event is detected by the EDCA0.

 

operational and will count events

0010 = The event counter is disabled, but is enabled

 

according to ECNTWHAT bits, which

when an event is detected by the EDCA1.

 

select the source for that count. If bits

0011 = The event counter is disabled, but is enabled

 

ECNTEN are set to enable the operation

when an event is detected by the EDCA2.

 

of the event counter when an event is

0100 = The event counter is disabled, but is enabled

 

detected or signal EE2 is asserted, the

when an event is detected by the EDCA3.

 

EOnCE overwrites these bits to 1111

0101 = The event counter is disabled, but is enabled

 

one cycle after the appearance of the

when an event is detected by the EDCA4.

 

event.

0110 = The event counter is disabled, but is enabled

 

 

when an event is detected by the EDCA5.

 

When the event counter is programmed

0111 = The event counter is disabled, but is enabled

 

to be enabled by the same event that it

when an event is detected by the optional external

 

has to count, the first such event enables

EDCA6.

 

the event counter and is counted as the

1000 = The event counter is disabled, but is enabled

 

first event.

when an event is detected by the optional external

 

 

EDCA7.

 

When the event counter is enabled by a

1001

= The event counter is disabled, but is enabled

 

when an event is detected by EDCD.

 

given event, but is programmed to count

 

1010

= The event counter is disabled, but is enabled

 

a different event, the counter does not

 

when signal EE2 is asserted and EE2 is

 

include the enabling event in the count.

 

programmed in the EE_CTRL register as an input.

 

 

 

 

1011

= Reserved

 

 

1100

= Reserved

 

 

1101

= Reserved

 

 

1110

= Reserved

 

 

1111

= The event counter is enabled.

 

 

 

ECNTWHAT

Events to be Counted — Determines

0000 = Count event0 occurrence.

Bits 3–0

what is to be counted by ECNT.

0001 = Count event1 occurrence.

 

 

0010

= Count event2 occurrence.

 

 

0011

= Count event3 occurrence.

 

 

0100

= Count event4 occurrence.

 

 

0101

= Count event5 occurrence.

 

 

0110

= Count optional external event6 occurrence

 

 

0111

= Count optional external event7 occurrence

 

 

1000

= Count eventD occurrence.

 

 

1001

= Count executions of DEBUGEV instruction.

 

 

1010

= Count trace events (data moved to the buffer).

 

 

1011

= Count executed execution sets.

 

 

1100

= Count core clocks.

 

 

1101

= Count off-core event 0

 

 

1110

= Count off-core event 1

 

 

1111

= Reserved

 

 

 

 

4.8.2 Event Counter Value Register (ECNT_VAL)

This 32-bit register is used to determine how many events the event counter should count before it generates the count event signal. ECNT_VAL is a down-counter. The MSB is always zero, so the range is from $7FFF FFFF to $0000 0000. When the register is written, the MSB should be written to zero for software compatibility.

4-52

SC140 DSP Core Reference Manual

Page 162
Image 162
Freescale Semiconductor SC140 specifications Event Counter Value Register Ecntval, Event Counter Enable Used to