(3)
Priority setting
・
Priority levels
The external interrupt priority is set to the interrupt priority register and other exceptions
are set to <PRI_n> bit in the system handler priority register.
The configuration <PRI_n> can be changed, and the number of bits required for setting
the priority varies from 3 bits to 8 bits depending on products. Thus, the range of priority val-
ues you can specify is different depending on products.
In the case of 8-bit configuration, the priority can be configured in the range from 0 to
255. The highest priority is "0". If multiple elements with the same priority exist, the small-
er the number, the higher the priority becomes.
Note:
<PRI_n> bit is defined as a 3-bit configuration with this product.
・
Priority grouping
The priority group can be split into groups. By setting the <PRIGROUP> of the applica-
tion interrupt and reset control register, <PRI_n> can be divided into the pre-emption prior-
ity and the sub priority.
A priority is compared with the pre-emption priority. If the priority is the same as the pre-
emption priority, then it is compared with the sub priority. If the sub priority is the same
as the priority, the smaller the exception number, the higher the priority.
The Table 7-2 shows the priority group setting. The pre-emption priority and the sub pri-
ority in the table are the number in the case that <PRI_n> is defined as an 8-bit configuration.
Table 7-2 Priority grouping setting
<PRIGROUP[2:0]>
setting
<PRI_n[7:0]>
Number of
pre-emption
priorities
Number of
subpriorities
Pre-emption
field
Subpriority
field
000
[7:1]
[0]
128
2
001
[7:2]
[1:0]
64
4
010
[7:3]
[2:0]
32
8
011
[7:4]
[3:0]
16
16
100
[7:5]
[4:0]
8
32
101
[7:6]
[5:0]
4
64
110
[7]
[6:0]
2
128
111
None
[7:0]
1
256
Note:
If the configuration of <PRI_n> is less than 8 bits, the lower bit is "0". For the exam-
ple, in the case of 3-bit configuration, the priority is set as <PRI_n[7:5]> and <PRI_n[4:0]
> is "00000".
7.1.2.2 Exception Handling and Branch to the Interrupt Service Routine (Pre-emption)
When an exception occurs, the CPU suspends the currently executing process and branches to the inter-
rupt service routine. This is called "pre-emption".
TMPM3V6/M3V4
7. Exceptions
7.1 Overview
Page 78
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......