声明:
1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。
2、请勿用于商业用途。
3、英文来自:http://www.keil.com/support/man/docs/c51/。
4、欢迎大家共同与我交流探讨(290207203@qq.com)。
INTERVAL Compiler Directive
| Abbreviation | None. | ||||||
| Arguments | An optional interval, in parentheses, for the interrupt vector table. The permitted range is 3 — 64. | ||||||
| Default | INTERVAL (8) | ||||||
| µVision | Options — C51 — Misc controls. | ||||||
| Description | The INTERVAL directive specifies an interval for interrupt vectors. When this directive is specified, the compiler locates interrupt vectors at the absolute address calculated by: (interval × n) + offset + 3, Where
| ||||||
| See Also | |||||||
| Example | C51 SAMPLE.C INTERVAL(3)
#pragma interval(3)
|
INTERVAL 编译器伪指令
| 缩写 | None. | ||||||
| 参数 | 中断向量表间隔,用括号括起来。 允许的范围是 3 — 64。 | ||||||
| 缺省 | INTERVAL (8) | ||||||
| µVision | Options — C51 — Misc controls. | ||||||
| 描述 | INTERVAL 伪指令指定中断向量表之间的间隔。当指定这个伪指令时,编译器按照下面的公式,把中断向量定位在绝对地址上。 (interval × n) + offset + 3, 这里
| ||||||
| 参数 | |||||||
| 示例 | C51 SAMPLE.C INTERVAL(3)
#pragma interval(3)
|
本文详细介绍了INTERVAL伪指令的功能及使用方法。该指令用于指定中断向量表之间的间隔,适用于特定类型的微控制器,如SIECO-51派生器件。通过设置不同间隔值,可以调整中断向量在内存中的分布。
Note
Related Knowledgebase Articles
1694

被折叠的 条评论
为什么被折叠?



