Freescale S12X XGATE Debug Features Application Note

This application note describes the built-in debug features for the XGATE coprocessor in Freescale S12X(E) microcontrollers, including manual thread control…


Freescale S12X XGATE Debug Features Application Note - cover page
Brand
Freescale Semiconductor
Category
microcontrollers
Document type
Application Note
Language
English
Pages
24
File format
PDF
File size
282 KB
Published
22 October, 2026
Updated
22 October, 2026
MD5 checksum
EF9E8368B2A1B66BD4408E1F96B3A557

About this manual

The document provides an overview of the debugging capabilities integrated into the XGATE peripheral coprocessor for S12X(E) controllers. It explains how to use hardware debug features directly or understand their interaction with high-level environments.

Key topics include the RISC core architecture, stages of operation (configuration, application, and debug), memory mapping, status registers, and specific debug functions such as manually starting/terminating threads, single stepping, and manipulating core registers.

What's inside

  • Introduction to the XGATE
  • RISC Core
  • Stages of Operation
  • Memory Map
  • Status and Control Registers
  • Debug Features
  • S12XDBG Module
  • Comparators
  • Examples

Specifications

General-purpose registers countseven
Interrupt nesting (S12X)cannot be nested
Interrupt nesting (S12XE)one level

Frequently asked questions

How can you manually enter debug mode?

You can manually enter debug mode by setting the XGDBG bit through a write access to the XGMCTL register.

How do you terminate a thread in debug mode?

To terminate a thread, write 0x00 to the channel ID register (XGCHID).

How do you execute a single instruction while debugging?

Write a 1 to the XGSS bit if a thread is active.

Download PDF (282 KB)

More Freescale Semiconductor Manuals


View all Freescale Semiconductor manuals →