 | Cx51 User's Guide |  |
|
|
| 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: | interval | is the argument of the INTERVAL directive (default 8). | | n | is the interrupt number. | | offset | is the argument of the INTVECTOR directive (default 0). |
| | See Also | INTVECTOR, NOINTVECTOR | | Example |
C51 SAMPLE.C INTERVAL(3)
#pragma interval(3)
|
Related Knowledgebase Articles |
|