Datasheet
Chapter 7 Central Processor Unit (S08CPUV2)
MC9S08QG8 and MC9S08QG4 Data Sheet, Rev. 5
Freescale Semiconductor 95
7.4.5 BGND Instruction
The BGND instruction is new to the HCS08 compared to the M68HC08. BGND would not be used in 
normal user programs because it forces the CPU to stop processing user instructions and enter the active 
background mode. The only way to resume execution of the user program is through reset or by a host 
debug system issuing a GO, TRACE1, or TAGGO serial command through the background debug 
interface. 
Software-based breakpoints can be set by replacing an opcode at the desired breakpoint address with the 
BGND opcode. When the program reaches this breakpoint address, the CPU is forced to active 
background mode rather than continuing the user program. 










