Chapter 5 Resets, Interrupts, and General System Control

 

 

Table 5-3. SRS Register Field Descriptions (continued)

 

 

 

Field

 

Description

 

 

4

Illegal Opcode. Reset was caused by an attempt to execute an unimplemented or illegal opcode. This includes

ILOP

any illegal instruction (except the ILLEGAL (0x4AFC) opcode) or a privilege violation (execution of a supervisor

 

instruction in user mode. The STOP instruction is considered illegal if SOPT1[STOPE,WAITE] are cleared. The

 

HALT instruction is considered illegal if the BDM interface is disabled (XCSR[ENBDM] = 0).

 

All illegal opcode resets are enabled when CPUCR[IRD] is cleared. If CPUCR[IRD] is set, then the appropriate

 

processor exception is generated instead of a reset.

 

0

Reset not caused by an illegal opcode.

 

1

Reset caused by an illegal opcode.

 

 

3

Illegal Address. Reset was caused by the processor's attempted access of an illegal address in the memory map,

ILAD

an address error, an RTE format error, or a fault-on-fault condition. All the illegal address resets are enabled when

 

CPUCR[ARD] is cleared. When CPUCR[ARD] is set, the appropriate processor exception is generated instead

 

of a reset, or if a fault-on-fault condition is reached, the processor simply halts.

 

0

Reset not caused by an illegal access.

 

1

Reset caused by an illegal access.

 

 

2

Reserved, should be cleared.

 

 

1

Low Voltage Detect. If LVDRE is set and the supply drops below the LVD trip voltage, an LVD reset occurs. This

LVD

bit is also set by POR.

 

0

Reset not caused by LVD trip or POR.

 

1

Reset caused by LVD trip or POR.

 

 

0

Reserved, should be cleared.

 

 

 

5.7.3System Options Register 1 (SOPT1)

All SOPT1 bit fields, except WAITE, are write-once. Therefore for the write-once bits, only the first write after reset is honored. Any subsequent attempt to write to these bit fields (intentionally or unintentionally) is ignored to avoid accidental changes to these sensitive settings. All bit fields may be read at any time and WAITE is write-anytime. SOPT1 should be written during the reset initialization program to set the desired controls even if the desired settings are the same as the reset settings.

7

6

5

4

3

2

1

0

R

COPE

COPT

STOPE

WAITE

0

RSTOPE

BKGDPE

RSTPE

W

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Reset:

1

1

0

1

0

u1

1

u1

POR:

1

1

0

1

0

0

1

0

LVR:

1

1

0

1

0

0

1

0

 

 

 

 

 

 

 

 

 

1u = unaffected

Figure 5-3. System Options Register 1 (SOPT1)

MCF51QE128 MCU Series Reference Manual, Rev. 3

100

Freescale Semiconductor

Get the latest version from freescale.com

Page 100
Image 100
Freescale Semiconductor MCF51QE128RM manual System Options Register 1 SOPT1, Por Lvr