|
MC9S12XD256CAG Datasheet, PDF (744/1348 Pages) Freescale Semiconductor, Inc – MC9S12XDP512 Data Sheet | |||
|
◁ |
Chapter 20 S12X Debug (S12XDBGV3) Module
The trace buffer is visible through a 2-byte window in the register address map and can be read out using
standard 16-bit word reads. Tracing is disabled when the MCU system is secured.
20.1.3 Features
⢠Four comparators (A, B, C, and D)
â Comparators A and C compare the full address bus and full 16-bit data bus
â Comparators A and C feature a data bus mask register
â Comparators B and D compare the full address bus only
â Each comparator can be conï¬gured to monitor either S12XCPU or XGATE buses
â Each comparator features control of R/W and byte/word access cycles
â Comparisons can be used as triggers for the state sequencer
⢠Three comparator modes
â Simple address/data comparator match mode
â Inside address range mode, Addmin ⤠Address ⤠Addmax
â Outside address range match mode, Address < Addmin or Address > Addmax
⢠Two types of triggers
â Tagged â This triggers just before a speciï¬c instruction begins execution
â Force â This triggers on the ï¬rst instruction boundary after a match occurs.
⢠Three types of breakpoints
â S12XCPU breakpoint entering BDM on breakpoint (BDM)
â S12XCPU breakpoint executing SWI on breakpoint (SWI)
â XGATE breakpoint
⢠Three trigger modes independent of comparators
â External instruction tagging (associated with S12XCPU instructions only)
â XGATE S/W breakpoint request
â TRIG Immediate software trigger
⢠Four trace modes
â Normal: change of ï¬ow (COF) PC information is stored (see Section 20.4.5.2.1) for change of
ï¬ow deï¬nition.
â Loop1: same as Normal but inhibits consecutive duplicate source address entries
â Detail: address and data for all cycles except free cycles and opcode fetches are stored
â Pure PC: All program counter addresses are stored.
⢠4-stage state sequencer for trace buffer control
â Tracing session trigger linked to Final State of state sequencer
â Begin, End, and Mid alignment of tracing to trigger
20.1.4 Modes of Operation
The S12XDBG module can be used in all MCU functional modes.
MC9S12XDP512 Data Sheet, Rev. 2.21
746
Freescale Semiconductor
|
▷ |