mc9s12xd256 Freescale Semiconductor, Inc, mc9s12xd256 Datasheet - Page 750

no-image

mc9s12xd256

Manufacturer Part Number
mc9s12xd256
Description
Hcs12x Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAA
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Part Number:
mc9s12xd256CAA
Manufacturer:
FREESCALE
Quantity:
3 564
Part Number:
mc9s12xd256CAG
Manufacturer:
FREESCALE
Quantity:
1 540
Part Number:
mc9s12xd256CAG
Manufacturer:
Freescale Semiconductor
Quantity:
10 000
Chapter 20 S12X Debug (S12XDBGV3) Module
750
DBGBRK
XGSBPE
COMRV
Field
TRIG
ARM
BDM
3–2
1–0
7
6
5
4
Arm Bit — The ARM bit controls whether the S12XDBG module is armed. This bit can be set and cleared by
user software and is automatically cleared on completion of a tracing session, or if a breakpoint is generated with
tracing not enabled. On setting this bit the state sequencer enters State1. When ARM is set, the only bits in the
S12XDBG module registers that can be written are ARM and TRIG.
0 Debugger disarmed
1 Debugger armed
Immediate Trigger Request Bit — This bit when written to 1 requests an immediate trigger independent of
comparator or external tag signal status. When tracing is complete a forced breakpoint may be generated
depending upon DBGBRK and BDM bit settings. This bit always reads back a 0. Writing a 0 to this bit has no
effect. If both TSOURCE bits are clear no tracing is carried out. If tracing has already commenced using BEGIN-
or MID trigger alignment, it continues until the end of the tracing session as defined by the TALIGN bit settings,
thus TRIG has no affect. In secure mode tracing is disabled and writing to this bit has no effect.
0 Do not trigger until the state sequencer enters the Final State.
1 Enter Final State immediately and issue forced breakpoint request when trace buffer is full.
XGATE S/W Breakpoint Enable — The XGSBPE bit controls whether an XGATE S/W breakpoint request is
passed to the S12XCPU. The XGATE S/W breakpoint request is handled by the S12XDBG module, which can
request an S12XCPU breakpoint depending on the state of this bit.
0 XGATE S/W breakpoint request is disabled
1 XGATE S/W breakpoint request is enabled
Background Debug Mode Enable — This bit determines if a S12X breakpoint causes the system to enter
Background Debug Mode (BDM) or initiate a Software Interrupt (SWI). It has no affect on S12XDBG functionality.
If this bit is set but the BDM is not enabled by the ENBDM bit in the BDM module, then breakpoints default to SWI.
0 Breakpoint to Software Interrupt if BDM inactive. Otherwise no breakpoint.
1 Breakpoint to BDM, if BDM enabled. Otherwise breakpoint to SWI
S12XDBG Breakpoint Enable Bits — The DBGBRK bits control whether the debugger will request a breakpoint
to either S12XCPU or XGATE or both upon reaching the state sequencer Final State. If tracing is enabled, the
breakpoint is generated on completion of the tracing session. If tracing is not enabled, the breakpoint is
generated immediately. Please refer to
independent of the DBGBRK bits. XGATE software breakpoints force a breakpoint to the S12XCPU independent
of the DBGBRK bit field configuration. See
Comparator Register Visibility Bits — These bits determine which bank of comparator register is visible in the
8-byte window of the S12XDBG module address map, located between 0x0028 to 0x002F. Furthermore these
bits determine which register is visible at the address 0x0027. See
DBGBRK
COMRV
00
01
00
01
10
11
No breakpoint generated
XGATE breakpoint generated
S12XCPU breakpoint generated
Breakpoints generated for S12XCPU and XGATE
Visible Comparator
Table 20-3. DBGC1 Field Descriptions
Comparator A
Comparator B
MC9S12XDP512 Data Sheet, Rev. 2.17
Table 20-4. DBGBRK Encoding
Table 20-5. COMRV Encoding
Section 20.4.7
Resource Halted by Breakpoint
Table
20-4.
Description
for further details. XGATE software breakpoints are
Visible Register at 0x0027
Table
DBGSCR1
DBGSCR2
20-5.
Freescale Semiconductor

Related parts for mc9s12xd256