mc68hc912bl16 Freescale Semiconductor, Inc, mc68hc912bl16 Datasheet - Page 123

no-image

mc68hc912bl16

Manufacturer Part Number
mc68hc912bl16
Description
16-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
15.3.1.1 SWI Dual Address Mode
15.3.1.2 BDM Full Breakpoint Mode
15.3.1.3 BDM Dual Address Mode
15.3.2 Registers
MC68HC912BL16TS/D
Breakpoints will not occur when BDM is active.
In this mode, dual address-only breakpoints can be set, each of which cause a software interrupt. This
is the only breakpoint mode which can force the CPU to execute a SWI. Program fetch tagging is the
default in this mode; data breakpoints are not possible. In the dual mode each address breakpoint is
affected by the respective BKALE bit. The BKxRW, BKxRWE, BKMBH and BKMBL bits are ignored. In
dual address mode the BKDBE becomes an enable for the second address breakpoint.
This is a single full-featured breakpoint which causes the part to enter background debug mode.
BK1ALE, BK1RW, and BK1RWE have no meaning in full breakpoint mode.
BKDBE enables data compare but has no meaning if BKPM=1. BKMBH and BKMBL allow masking of
high and low byte compares but has no meaning if BKPM=1. BK0ALE enables compare of low address
byte.
Dual address-only breakpoints, each of which cause the part to enter background debug mode. In the
dual mode each address breakpoint is affected by the BKPM bit, the BKxALE bits, and the BKxRW and
BKxRWE bits. In dual address mode the BKDBE becomes an enable for the second address break-
point. The BKMBH and BKMBL bits will have no effect when in a dual address mode. BDM mode may
be entered by a breakpoint only if an internal signal from the BDM indicates background debug mode
is enabled. If BKPM = 1 then BKxRW, BKxRWE, BKMBH and BKMBL have no meaning.
Breakpoint operation consists of comparing data in the breakpoint address registers (BRKAH/BRKAL)
to the address bus and comparing data in the breakpoint data registers (BRKDH/BRKDL) to the data
bus. The breakpoint data registers can also be compared to the address bus. The scope of comparison
can be expanded by ignoring the least significant byte of address or data matches.
The scope of comparison can be limited to program data only by setting the BKPM bit in breakpoint con-
trol register 0.
To trace program flow, setting the BKPM bit causes address comparison of program data only. Control
bits are also available that allow checking read/write matches.
• Single full-feature breakpoint which will cause the part to enter background debug mode (BDM)
• Dual address-only breakpoints, each of which will cause the part to enter BDM
• Breakpoints are not allowed if the BDM mode is already active. Active mode means the CPU is
• BDM should not be entered from a breakpoint unless the ENABLE bit is set in the BDM. This is
• Breakpoints are not allowed if the BDM mode is already active. Active mode means the CPU is
• BDM should not be entered from a breakpoint unless the ENABLE bit is set in the BDM. This is
executing out of the BDM ROM.
important because even if the ENABLE bit in the BDM is negated the CPU actually does execute
the BDM ROM code. It checks the ENABLE and returns if not set. If the BDM is not serviced by
the monitor then the breakpoint would be re-asserted when the BDM returns to normal CPU flow.
There is no hardware to enforce restriction of breakpoint operation if the BDM is not enabled.
executing out of the BDM ROM.
important because even if the ENABLE bit in the BDM is negated the CPU actually does execute
the BDM ROM code. It checks the ENABLE and returns if not set. If the BDM is not serviced by
the monitor then the breakpoint would be re-asserted when the BDM returns to normal CPU flow.
There is no hardware to enforce restriction of breakpoint operation if the BDM is not enabled.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
123

Related parts for mc68hc912bl16