![Samsung S3P80C5 Скачать руководство пользователя страница 103](http://html1.mh-extra.com/html/samsung/s3p80c5/s3p80c5_user-manual_3993739103.webp)
INTERRUPT STRUCTURE
S3P80C5/C80C5/C80C8
5-12
INTERRUPT PRIORITY REGISTER (IPR)
The interrupt priority register, IPR (set 1, bank 0, FFH), is used to set the relative priorities of the interrupt levels
used in the microcontroller's interrupt structure. After a reset, all IPR bit values are undetermined and must
therefore be written to their required settings by the initialization routine.
When more than one interrupt source is active, the source with the highest priority level is serviced first. If both
sources belong to the same interrupt level, the source with the lowest vector address usually has priority (This
priority is fixed in hardware).
To support programming of the relative interrupt level priorities, they are organized into groups and subgroups by
the interrupt logic. Please note that these groups (and subgroups) are used only by IPR logic for the IPR register
priority definitions (see Figure 5-7):
Group A
IRQ0, IRQ1
Group B
IRQ4
Group C
IRQ6, IRQ7
IPR
Group B
IPR
Group C
IRQ4
IRQ6
C1
C2
IRQ7
IPR
Group A
IRQ1
A2
IRQ0
A1
Figure 5-7. Interrupt Request Priority Groups
As you can see in Figure 5-8, IPR.7, IPR.4, and IPR.1 control the relative priority of interrupt groups A, B, and C.
For example, the setting '001B' for these bits would select the group relationship B > C > A; the setting '101B'
would select the relationship C > B > A.
The functions of the other IPR bit settings are as follows:
— IPR.5 controls the relative priorities of group C interrupts.
— Interrupt group B has a subgroup to provide an additional priority relationship between for interrupt levels 2,
3, and 4. IPR.3 defines the possible subgroup B relationships. IPR.2 controls interrupt group B. In the
S3P80C5/C80C5/C80C8 implementation, interrupt levels 2 and 3 are not used. Therefore, IPR.2 and IPR.3
settings are not evaluated, as IRQ4 is the only remaining level in the group.
— IPR.0 controls the relative priority setting of IRQ0 and IRQ1 interrupts.
Содержание S3P80C5
Страница 2: ...S3P80C5 C80C5 C80C8 8 BIT CMOS MICROCONTROLLERS USER S MANUAL Revision 1 ...
Страница 5: ......
Страница 13: ......
Страница 15: ......
Страница 17: ......
Страница 19: ......
Страница 49: ...ADDRESS SPACES S3P80C5 C80C5 C80C8 2 20 NOTES ...
Страница 197: ...INSTRUCTION SET S3P80C5 C80C5 C80C8 6 88 NOTES ...
Страница 201: ...CLOCK CIRCUITS S3P80C5 C80C5 C80C8 7 4 NOTES ...
Страница 237: ...TIMER 1 S3P80C5 C80C5 C80C8 11 6 NOTES ...
Страница 245: ...COUNTER A S3P80C5 C80C5 C80C8 12 8 NOTES ...
Страница 255: ......
Страница 257: ......
Страница 259: ......
Страница 261: ......
Страница 263: ...BOOK SPINE TEXT SAMSUNG Logo S3P80C5 C80C5 C80C8 Microcontrollers User s Manual Rev 1 May 2002 ...