Break Module (BRK)
MC68HC908AP Family Data Sheet, Rev. 4
294
Freescale Semiconductor
21.5.2 Break Address Registers
The break address registers (BRKH and BRKL) contain the high and low bytes of the desired breakpoint
address. Reset clears the break address registers.
21.5.3 SIM Break Status Register
The SIM break status register (SBSR) contains a flag to indicate that a break caused an exit from wait
mode. The flag is useful in applications requiring a return to wait mode after exiting from a break interrupt.
SBSW — Break Wait Bit
This status bit is set when a break interrupt causes an exit from wait mode or stop mode. Clear SBSW
by writing a logic 0 to it. Reset clears SBSW.
1 = Stop mode or wait mode was exited by break interrupt
0 = Stop mode or wait mode was not exited by break interrupt
SBSW can be read within the break interrupt routine. The user can modify the return address on the stack
by subtracting 1 from it. The following code is an example.
Address:
$FE0C
Bit 7
654321
Bit 0
Read:
Bit 15
14
13
12
11
10
9
Bit 8
Write:
Reset:
00000000
Figure 21-4. Break Address Register High (BRKH)
Address:
$FE0D
Bit 7
654321
Bit 0
Read:
Bit 7
654321
Bit 0
Write:
Reset:
00000000
Figure 21-5. Break Address Register Low (BRKL)
Address:
$FE00
Bit 7
654321
Bit 0
Read:
RRRRRR
SBSW
R
Write:
Note
Reset:
0
Note: Writing a logic 0 clears SBSW.
R
= Reserved
Figure 21-6. SIM Break Status Register (SBSR)