Operation; Flow Of User Break Operation - Hitachi SH7032 Hardware Manual

Superh risc engine
Table of Contents

Advertisement

6.3

Operation

6.3.1

Flow of User Break Operation

The flow from setting of break conditions to user break interrupt exception handling is described
below.
1. Break conditions are set in the break address register (BAR), break address mask register
(BAMR), and break bus cycle register (BBR). Set the break address in BAR, the address bits to
be masked in BAMR and the type of break bus cycle in BBR. When even one of the BBR
groups (CPU cycle/DMA cycle select bits (CD1, CD0), instruction fetch/data access select bits
(ID1, ID0), read/write select bits (RW1, RW0)) is set to 00 (no user break interrupt), there will
be no user break even when all other conditions are consistent. To use a user break interrupt,
set conditions for all three pairs.
2. The UBC checks to see if the set conditions are satisfied, using the system shown in figure 6.2.
When the break conditions are satisfied, the UBC sends a user break interrupt request to the
interrupt controller.
3. On receiving the user break interrupt request, the interrupt controller checks its priority level.
The user break interrupt has priority level 15, so it is accepted only if the interrupt mask level
in bits I3–I0 in the status register (SR) is 14 or lower. When the I3–I0 bit level is 15, the user
break interrupt cannot be accepted, but is held pending until user break interrupt exception
handling is carried out. NMI exception handling sets I3–I0 to level 15, so a user break cannot
occur during the NMI handling routine unless the NMI handling routine itself begins by
reducing I3–I0 to level 14 or lower. Section 5, Interrupt Controller (INTC), describes the
handling of priority levels in greater detail.
4. INTC sends a request signal for a user break interrupt to the CPU. When the CPU receives it, it
starts user break interrupt exception handling. Section 5.4, Interrupt Operation, describes
interrupt exception handling in more detail.
88

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents