MC68EC000 Motorola, MC68EC000 Datasheet - Page 107

no-image

MC68EC000

Manufacturer Part Number
MC68EC000
Description
Core Processor (SCM 68000)
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC68EC000AA10
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68EC000AA12
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68EC000AA16
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68EC000AA16
Manufacturer:
FREESCALE
Quantity:
20 000
Part Number:
MC68EC000AA16R2
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68EC000AA20
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
MC68EC000CFU10
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
Part Number:
MC68EC000EI10
Manufacturer:
MOT
Quantity:
6 239
Company:
Part Number:
MC68EC000EI12
Quantity:
2 766
Part Number:
MC68EC000EI16
Manufacturer:
FREESCALE
Quantity:
450
Part Number:
MC68EC000EI16
Manufacturer:
Freescale Semiconductor
Quantity:
135
Exception Processing
Exception processing for privilege violations is similar to that of illegal instructions. After the
instruction is fetched and decoded and the SCM68000 determines that a privilege violation
is being attempted, the SCM68000 starts exception processing. The status register is cop-
ied; the supervisor mode is entered; and tracing is turned off. The vector number is gener-
ated to reference the privilege violation vector, and the current program counter and the
copy of the status register are saved on the supervisor stack. Finally, instruction execution
commences at the address in the privilege violation exception vector.
4.3.6 Tracing
To aid in program development, the M68000 Family includes a facility to allow tracing fol-
lowing each instruction. When tracing is enabled, an exception is forced after each instruc-
tion is executed. Thus, a debugging program can monitor the execution of the program
under test.
The trace function is controlled by the T-bit in the supervisor portion of the status register. If
the T-bit is cleared (off), tracing is disabled and instruction execution proceeds normally. If
the T-bit is set (on) at the beginning of the execution of an instruction, a trace exception is
generated after the instruction is completed. If the instruction is not executed because an
interrupt is taken or because the instruction is illegal or privileged, the trace exception does
not occur. The trace exception also does not occur if the instruction is aborted by the reset,
bus error, or address error exceptions. If the instruction is executed and an interrupt is pend-
ing upon completion, the trace exception is processed before the interrupt exception. During
the execution of the instruction, if an exception is forced by that instruction, the exception
processing for the instruction exception occurs before that of the trace exception.
As an extreme illustration of these rules, consider the arrival of an interrupt during the exe-
cution of a TRAP instruction while tracing is enabled. First, the trap exception is processed,
then the trace exception, and finally, the interrupt exception. Instruction execution resumes
in the interrupt handler routine.
After the execution of the instruction is complete and before the start of the next instruction,
exception processing for a trace begins. A copy is made of the status register. The transition
to supervisor mode is made, and the T-bit of the status register is turned off, disabling further
tracing. The vector number is generated to reference the trace exception vector, and the cur-
rent program counter and the copy of the status register are saved on the supervisor stack.
The saved value of the program counter is the address of the next instruction. Instruction
execution commences at the address contained in the trace exception vector.
4.3.7 Bus Error
A bus error exception is requested by external logic. The current bus cycle is terminated.
The current SCM68000 activity, whether instruction or exception processing, is terminated,
and the SCM68000 immediately begins exception processing.
Exception processing for a bus error follows the usual sequence of steps. The status register
is copied, the supervisor mode is entered, and tracing is turned off. The vector number is
generated to refer to the bus error vector. Since the SCM68000 is fetching the instruction or
an operand when the error occurs, the context of the SCM68000 is more detailed. To save
4-22
Freescale Semiconductor, Inc.
EC000 CORE PROCESSOR USER’S MANUAL
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Related parts for MC68EC000