CHAPTER 7 INTERRUPT/EXCEPTION PROCESSING FUNCTION
User’s Manual U12688EJ4V0UM00
228
(2) To generate an exception in a service program
Service program of maskable interrupt or exception
...
...
•
EIPC saved to memory or register
•
EIPSW saved to memory or register
...
•
TRAP instruction
←
Exception such as TRAP instruction acknowledged.
...
•
Saved value restored to EIPSW
•
Saved value restored to EIPC
•
RETI instruction
The priority order for multiple interrupt processing control has 8 levels, from 0 to 7 for each maskable interrupt
request (0 is the highest priority), which can be set as desired via software. The priority order level is set with
the xxPRn0 to xxPRn2 bits of the interrupt control request register (xxlCn), which is provided for each
maskable interrupt request. At system reset time, an interrupt request is masked by the xxMKn bit and the
priority order is set to level 7 by the xxPRn0 to xxPRn2 bits.
The priority order of maskable interrupts is as follows.
(High) Level 0 > Level 1 > Level 2 > Level 3 > Level 4 > Level 5 > Level 6 > Level 7 (Low)
Interrupt processing that has been suspended as a result of multiple processing control is resumed after the
interrupt processing of the higher priority has been completed and the RETI instruction has been executed.
A pending interrupt request is acknowledged after the current interrupt processing has been completed and
the RETI instruction has been executed.
Caution In the non-maskable interrupt processing routine (time until the RETI instruction is
executed), maskable interrupts are not acknowledged but are held pending.
Содержание V850E/MS1 UPD703100
Страница 2: ...User s Manual U12688EJ4V0UM00 2 MEMO ...
Страница 6: ...User s Manual U12688EJ4V0UM00 6 MEMO ...
Страница 8: ...User s Manual U12688EJ4V0UM00 8 MEMO ...
Страница 12: ...User s Manual U12688EJ4V0UM00 12 MEMO ...
Страница 26: ...User s Manual U12688EJ4V0UM00 26 MEMO ...
Страница 68: ...User s Manual U12688EJ4V0UM00 68 MEMO ...
Страница 124: ...User s Manual U12688EJ4V0UM00 124 MEMO ...
Страница 198: ...User s Manual U12688EJ4V0UM00 198 MEMO ...
Страница 230: ...User s Manual U12688EJ4V0UM00 230 MEMO ...
Страница 422: ...User s Manual U12688EJ4V0UM00 422 MEMO ...