beautypg.com

3 eonce monitor and control register (emcr), Eonce monitor and control register (emcr) -41, Emcr description -41 – Freescale Semiconductor StarCore SC140 User Manual

Page 151: Information, see, Section 4.7.3, “eonce monitor and, Control register (emcr), Table 4-15 describes the emcr fields

background image

EOnCE Controller Registers

SC140 DSP Core Reference Manual

4-41

4.7.3 EOnCE Monitor and Control Register (EMCR)

The EMCR is a 32-bit register. Bits 31–16 are read/write control bits. Bits 15–0 are sticky status bits and
can only be written with zeros. Writing them with a one has no effect. The sticky status bits of the register
indicate an event generated by the EOnCE EDU.

Figure 4-17 displays the configuration of EMCR.

The shaded bits are reserved and should be initialized with zeros for future software compatibility.

Figure 4-17. EOnCE Monitor and Control Register (EMCR)

Table 4-15 describes the EMCR fields.

BIT

31

30

29

28

27

26

25

24

23

22

21

20

19

18

17

16

PICINT TRSINT TBFDM RCVINT

DEBUGERST

SWDIS

IME

TYPE

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

RESET

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

BIT 15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

BIT 0

DIS

EDCD

ST

EDCA

ST7

EDCA

ST6

EDCA

ST5

EDCA

ST4

EDCA

ST3

EDCA

ST2

EDCA

ST1

EDCA

ST0

TYPE

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

rw

RESET

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Table 4-15. EMCR Description

Name

Description

R
Bits 31–26

Reserved

PICINT
Bit 25

PIC interrupt - When set, and there is a condition that would have caused a
debug exception, the EOnCE will assert an external pin to an external interrupt
controller. When reset, the core generates an internal debug exception for the
same event. This bit is for the use of the system engineer.

TRSINT
Bit 24

Transmit Interrupt — Can be set for interrupt driven data messaging. If this bit is
set and the TRSMT bit is reset by the EOnCE, a debug exception is issued. The
core ISR determines the reason for the interrupt and writes the new data to the
ETRSMT register.

TBFDM
Bit 23

Enter Debug on Trace Buffer Full — When TBFDM is cleared, the trace buffer
wraps around when full and does not affect core execution. After write pointer
wrap-around, the trace buffer over-writes the oldest entries like a modulo buffer.
When TBFDM is set, the trace buffer almost-full condition affects core execution
according to the IME bit. For this condition, IME cleared causes the core to enter
debug state and IME set causes the core to take the debug exception. TBFDM is
cleared on RESET

RCVINT
Bit 22

Receive Interrupt — Can be set by the user for interrupt driven data messaging
from the host to the target. If this bit is set and the RCV bit is set by the EOnCE, a
debug exception is issued. The core interrupt service routine (ISR) determines the
reason for the interrupt and reads the content of the ERCV register.