beautypg.com

2 "inte" instruction, Inte" instruction, 2 "inte" instruction") – FUJITSU FR family 32-bit microcontroller instruction manuel CM71-00101-5E User Manual

Page 70

background image

46

CHAPTER 4 RESET AND "EIT" PROCESSING

4.5.2

"INTE" Instruction

The "INTE" instruction is used to create a software trap for debugging.
This section describes the operation, time requirements, program counter (PC) values
saved, and other information of the "INTE" instruction.

Overview of the "INTE" Instruction

The "INTE" instruction is used to create a software trap for debugging. This instruction allows the use of

emulators.

This technique can be utilized by users for systems that have not been debugged by emulators.

"INTE" Instruction Operation

When the "INTE" instruction is executed, the following operations take place.

(1) The contents of the program status (PS) are saved to the system stack.

(2) The address of the next instruction is saved to the system stack.

(3) The value of the system stack pointer (SSP) is reduced by 8.

(4) The value "4" is written to the interrupt level mask register (ILM) in the "PS".

(5) The value "0" is written to the "S" flag in the "CCR" in the "PS".

(6) The value "TBR + 3D8

H

" is stored in "PC".

Time to Start of Trap Processing for "INTE" Instructions

The time required to start trap processing is 6 cycles.

"PC" Values Saved for "INTE" Instruction Execution

The "PC" value saved to the system stack represents the address of the next instruction after the "INTE"

instruction.

Precautionary Information for Use of "INTE" Instructions

The "INTE" instruction cannot be used in user programs involving debugging with an emulator. Also, the

"INTE" instruction should not be used within an "INTE" instruction handler or step trace trap-handler

routine. This will prevent normal operation from resuming after the "RETI" instruction. Note also that no

"EIT" events can be generated by "INTE" instructions during stepwise execution.