R0和R1寄存器在内存映射中的哪里?

发布于 2024-12-22 15:40:38 字数 126 浏览 5 评论 0原文

我对内存映射中程序计数器(R0)和堆栈指针(R1)的位置感到非常困惑。我认为它们位于CPU内部,所以内存映射中没有任何位置显示这些寄存器。但是我的朋友坚持认为它们位于特殊功能寄存器(SFR),即它们位于内存映射的底部。哪一个是正确的答案?

I'm so confused about the location of program counter (R0) and stack pointer(R1) in the memory map.I think they are inside the CPU,so there is not any location inside memory map that shows these registers.But my friend insists that they are located at special function registers(SFR) that is they are located at the bottom of the memory map.Which one is the right answer?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

世界和平 2024-12-29 15:40:38

寄存器 R0 和 R1(以及所有其他通用寄存器)驻留在 CPU 内,并使用使用“寄存器模式”作为操作数的指令进行访问。它们不是内存映射的。

特殊功能寄存器在您所使用的 MSP430 型号的器件特定数据表中定义。 SFR 通常包括直接影响 CPU 执行的设备的中断使能位和中断标志位(例如 NMI、振荡器故障等以及第一个串行端口),但通常不包括其他通用外设。

例如,请参见《MSP430x2xx 系列用户指南》中的“图 3-1:CPU 框图”,

另请参阅MSP430F2619-HT 器件特定数据表<的第 14 页< /a> 显示特殊功能寄存器。没有提及通用寄存器。

The registers R0 and R1 (and all the other general purpose registers) reside within the CPU and are accessed using instructions that use the "register mode" for an operand. They are not memory mapped.

Special Function Registers are defined in the device specific data sheet for the MSP430 variant you are using. The SFRs typically include interrupt enable bits and interrupt flag bits for devices that directly affect the execution of the CPU (such as NMI, oscillator fault, etc and the first serial port) but do not normally include other general purpose peripherals.

For example, see "Figure 3-1: CPU Block Diagram" in the MSP430x2xx Family Users Guide, SAU144H. The registers are shown as part of the CPU.

Also as an example, see page 14 of the MSP430F2619-HT device specific datasheet which shows the specifal function registers. No mention of the general purpose registers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文