89/317
5 - Peripherals
As shown in the rightmost column of these tables, these sources are prioritized. This means
that if several interrupt requests are active at the same time, the interrupt controller will choose
to service the highest priority request. When this interrupt is fully serviced, the next highest pri-
ority request will be serviced.
Please note that the tables are not identical: the number of vectors is different, and each
vector groups a different set of interrupt causes, in particular the external interrupts (EI) are
different. For other peripherals, such as the timer, SPI, etc. the grouping is identical, but the in-
terrupt numbers and hence the priorities are different.
External interrupt inputs are further discussed in the paragraph about the parallel input-out-
puts.
5.2.2 Interrupt vectorization
When the core decides to grant an interrupt, it must know the address of the code to be exe-
cuted when this event occurs. This is the purpose of the interrupt vectors.
The interrupt vectors are a table of 16-bit words in program memory that contain the address
of the beginning of the various interrupt service routines.
According to the source of the interrupt (I/O, timer, etc.), the core fetches from a predefined lo-
cation in memory, the address of the interrupt service routine especially written for processing
that event. The vectors have a fixed location at the end of the addressing space. In addition to
the interrupt vectors, the vector table also contains the reset vector that is fetched when the
microcontroller is reset in order to get the address of the beginning of the main program.
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...