Freescale Semiconductor SC140 Event Detection Channel EDCAi, Comparators Selection Used to

Models: SC140

1 760
Download 760 pages 48.94 Kb
Page 165
Image 165

 

 

 

 

Event Detection Unit (EDU) Channels and Registers

 

 

 

 

 

 

 

Table 4-19. EDCA_CTRL Description (Continued)

 

 

 

 

 

Name

Description

Settings

 

 

 

 

 

 

 

 

 

 

 

EDCAEN

Event Detection Channel (EDCAi)

0000

= EDCAi is disabled.

 

Bits

Enable — Used to enable or disable

0001

= EDCAi is disabled, but is enabled when an event is

 

13–10

event detection channels. When it is

detected by EDCA0.

 

 

enabled, it continues to operate until it is

0010

= EDCAi is disabled, but is enabled when an event is

 

 

explicitly disabled by writing 0000 into

detected by EDCA1.

 

 

EDCAEN bits, or EDCAEN bits are

0011

= EDCAi is disabled, but is enabled when an event is

 

 

changed for another enabling condition.

detected by EDCA2.

 

 

The channel remains disabled until a

0100

= EDCAi is disabled, but is enabled when an event is

 

 

new enabling condition occurs.

detected by EDCA3.

 

 

 

0101

= EDCAi is disabled, but is enabled when an event is

 

 

When bits EDCAEN are set to enable

detected by EDCA4.

 

 

the operation of EDCAi upon detection

0110

= EDCAi is disabled, but is enabled when an event is

 

 

of an event, the EOnCE overwrites

detected by EDCA5.

 

 

these bits to 1111 one cycle after the

0111

= EDCAi is disabled, but is enabled when an event is

 

 

appearance of the event.

detected by the optional external EDCA6

 

 

 

1000

= EDCAi is disabled, but is enabled when an event is

 

 

When the event detection channel is

detected by the optional external EDCA7.

 

 

1001

= EDCAi is disabled, but is enabled when an event is

 

 

programmed to detect PC, the PC of the

 

 

detected by EDCD.

 

 

first instruction cycle after the channel

 

 

1010

= EDCAi is disabled, but is enabled when a count

 

 

has been enabled is not yet detected.

 

 

event is detected.

 

 

 

 

 

The latency for enabling a channel is

1011

= EDCAi is disabled, but is enabled when a signal EEi

 

 

is asserted and EEi in the EE_CTRL register is

 

 

one cycle.

 

 

programmed to be an input.

 

 

 

 

 

 

1100

= EDCAi is enabled but will be disabled when EEi is

 

 

 

negated, in both cases and EEi is programmed as an

 

 

 

input in the EE_CTRL register. This state can only be

 

 

 

reached by previously being in the 1011 state and

 

 

 

asserting the EEi pin.

 

 

 

1101

= Reserved

 

 

 

1110

= Reserved

 

 

 

1111

= EDCA is enabled.

 

 

 

 

 

CS

Comparators Selection — Used to

00 = Comparator A only

 

Bits 9–8

select the desired combination of

01 = Comparator B only

 

 

comparator A and comparator B results.

10 = Comparator A AND Comparator B

 

 

An event detection can be generated in

11 = Comparator A OR Comparator B

 

 

the following cases:

 

 

 

 

 

• Only comparator A condition is

 

 

 

 

 

detected.

 

 

 

 

 

• Only comparator B condition is

 

 

 

 

 

detected.

 

 

 

 

 

• Both comparator A and comparator

 

 

 

 

 

B conditions are detected.

 

 

 

 

 

• Either comparator A or comparator

 

 

 

 

 

B conditions are detected.

 

 

 

 

 

 

 

 

 

SC140 DSP Core Reference Manual

4-55

Page 165
Image 165
Freescale Semiconductor SC140 specifications Event Detection Channel EDCAi, Comparators Selection Used to