|
| INTERVAL Compiler Directive| Abbreviation | | None. | | Arguments | | An optional interval, in parentheses, for the interrupt vector table. | | 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). |
Note - An interval specification is required for SIECO-51 derivatives which define interrupt vectors in 3-byte intervals.
| | See Also | | INTVECTOR, NOINTVECTOR | | Example | |
C51 SAMPLE.C INTERVAL(3)
#pragma interval(3)
|
Related Knowledgebase Articles |
|