Renesas Renasas Single-Chip Microcomputer SH7086 Manual de usuario Pagina 275

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 308
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 274
257
Chapter 5 Interrupt
The register save operation performed in an interrupt sequence differs depending on whether the con-
tent of the stack pointer (SP)
*1
is an even or an odd number when an interrupt request is acknowledged.
If the stack pointer (SP)
*1
indicates an even number, the contents of the flag register (FLG) and program
counter (PC) each are saved simultaneously all 16 bits together. If the stack pointer indicates an odd
number, the register contents each are saved in two operations 8 bits at a time. Figure 5.3.3 shows how
registers are saved in each case.
*1 Stack pointer indicated by the U flag.
(1) When stack pointer (SP) contains an even number
Address
(2) When stack pointer (SP) contains an odd number
Stack area Stack area
Sequence in which order
registers are saved
Sequence in which order
registers are saved
Address
Finished saving registers
in two operations.
Finished saving registers in
four operations.
(3)
(4)
(1)
(2)
Saved
separately, 8
bits at a time
(1) Saved simul-
taneously, all 16
bits together
(2) Saved simul-
taneously, all 16
bits together
*
[SP] denotes the initial value of the stack pointer (SP) when interrupt request is acknowledged.
After the microcomputer finishes saving registers, the SP content is [SP] minus 4.
[SP]5
(Odd address)
[SP]4
(Even address)
[SP]3
(Odd address)
[SP]2
(Even address)
[SP]1
(Odd address)
[SP]
(Even address)
[SP]5
(Even address)
[SP]4
(Odd address)
[SP]3
(Even address)
[SP]2
(Odd address)
[SP]1
(Even address)
[SP]
(Odd address)
Program counter (PC
L
)
Program counter (PC
M
)
Flag register (FLG
L
)
Flag register
(FLG
H
)
Program counter
(PC
H
)
Program counter (PC
L
)
Program counter (PC
M
)
Flag register (FLG
L
)
Program counter
(PC
H
)
Flag register
(FLG
H
)
Figure 5.3.3 Operations to save registers
5.3 Interrupt Sequence
Vista de pagina 274
1 2 ... 270 271 272 273 274 275 276 277 278 279 280 ... 307 308

Comentarios a estos manuales

Sin comentarios