文章提出了一种嵌入式微处理器的在线调试模块。这个模块可以用较少的硬件开支实现一些强大的调试功能:响应硬件和软件触发,提供开始/停止调试模试;单步调试操作;程序执行的跟踪;代码内存、外部数据存储器、SFR、内部数据存储器的读和写。文章首先介绍了嵌入式微处理器可调试模块设计的原理,其次介绍了在线调试的结构设计,最后给出结论和分析。 关键词 嵌入式微处理器 片上可调试系统 SFR Abstract : The paper presents an on-chip debug mode for embedded microprocessors. With little hardware overhead, the debug mode can give some powerful debug functions. For example, providing start/stop program execution in response to both hardware and software triggers, single step operation , program execution tracing, code memory read or write, external data memory read or write, SFR read or write, internal data memory read or write. Firstly ,the paper introduces the theory of the debug mode,then it introduces the structure of the mode, and finally gives the conclusion and practical analysis. Keywords: Embedded microprocessor, On-chip debug mode, SFR