![Freescale Semiconductor MPC5632M Скачать руководство пользователя страница 437](http://html.mh-extra.com/html/freescale-semiconductor/mpc5632m/mpc5632m_manual_2330659437.webp)
MPC563XM Reference Manual, Rev. 1
Freescale Semiconductor
437
Preliminary—Subject to Change Without Notice
a priority, etc. With this approach, a range of ISR request rates of 2
16
could be covered, regardless of the
number of ISRs.
Reducing the number of priorities does cause some priority inversion which reduces the processor’s ability
to meet its deadlines. However, reducing the number of priorities can reduce the size and latency through
the interrupt controller. It also allows easier management of ISRs with similar deadlines that share a
resource. They can be placed at the same priority without any further priority inversion, and they do not
need to use the PCP to access the shared resource.
14.7.8
Software Setable Interrupt Requests
The software setable interrupt requests can be used in two ways. They can be used to schedule a lower
priority portion of an ISR and for processors to interrupt other processors in a multiple processor system.
14.7.8.1
Scheduling a Lower Priority Portion of an ISR
A portion of an ISR needs to be executed at the PRI
x
value in
Section 14.5.11, “INTC Priority Select
Registers (INTC_PSR0_3 - INTC_PSR508_511)
”, which becomes the PRI value in either
“INTC Current Priority Register for Processor 0 (INTC_CPR_PRC0)
Priority Register for Processor 1 (INTC_CPR_PRC1)
” with the interrupt acknowledge. The ISR, however,
can have a portion of it which does not need to be executed at this higher priority. Therefore, executing
this later portion which does not need to be executed at this higher priority can block the execution of ISRs
which do not have a higher priority than the earlier portion of the ISR but do have a higher priority than
what the later portion of the ISR needs. This priority inversion reduces the processor’s ability to meet its
deadlines.
One option is for the ISR to complete the earlier higher priority portion, but then schedule through the
RTOS a task to execute the later lower priority portion. However, some RTOSs can require a large amount
of time for an ISR to schedule a task. Therefore, a second option is for the ISR, after completing the higher
priority portion, to set a SET
x
Section 14.5.10, “INTC Software Set/Clear Interrupt Registers
(INTC_SSCIR0_3 - INTC_SSCIR4_7)
”. Writing a ‘1’ to SET
x
causes a software setable interrupt request.
This software setable interrupt request, which usually will have a lower PRI
x
value in the INTC_PSR
x
_
x
,
therefore will not cause priority inversion.
14.7.8.2
Scheduling an ISR on Another Processor
Since the SET
x
bits in the INTC_SSCIR
x
_
x
are memory mapped, processors in multiple processor
systems can schedule ISRs on the other processors. One application is that one processor simply wants to
command another processor to perform a piece of work, and the initiating processor does not need to use
the results of that work. If the initiating processor is concerned that processor executing the software
setable ISR has not completed the work before asking it to again execute that ISR, it can check if the
corresponding CLR
x
bit in INTC_SSCIR
x
_
x
is asserted before again writing a ‘1’ to the SET
x
bit.
Another application is the sharing of a block of data. For example, a first processor has completed
accessing a block of data and wants a second processor to then access it. Furthermore, after the second
processor has completed accessing the block of data, the first processor again wants to access it. The
accesses to the block of data must be done coherently. The procedure is that the first processor writes a ‘1’
Содержание MPC5632M
Страница 22: ...MPC563XM Reference Manual Rev 1 22 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 62: ...MPC563XM Reference Manual Rev 1 62 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 92: ...MPC563XM Reference Manual Rev 1 92 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 168: ...MPC563XM Reference Manual Rev 1 168 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 242: ...MPC563XM Reference Manual Rev 1 242 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 302: ...MPC563XM Reference Manual Rev 1 302 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 410: ...MPC563XM Reference Manual Rev 1 410 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 440: ...MPC563XM Reference Manual Rev 1 440 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 464: ...MPC563XM Reference Manual Rev 1 464 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 554: ...MPC563XM Reference Manual Rev 1 554 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 590: ...MPC563XM Reference Manual Rev 1 590 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 622: ...MPC563XM Reference Manual Rev 1 622 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 716: ...MPC563XM Reference Manual Rev 1 716 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1114: ...MPC563XM Reference Manual Rev 1 1114 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1144: ...MPC563XM Reference Manual Rev 1 1144 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1266: ...MPC563XM Reference Manual Rev 1 1266 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1316: ...MPC563XM Reference Manual Rev 1 1316 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1348: ...MPC563XM Reference Manual Rev 1 1348 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1362: ...MPC563XM Reference Manual Rev 1 1362 Freescale Semiconductor Preliminary Subject to Change Without Notice ...
Страница 1382: ...MPC563XM Reference Manual Rev 1 1382 Freescale Semiconductor Preliminary Subject to Change Without Notice ...