7.5.2.4 Detection by CPU
The CPU detects an interrupt request with the highest priority.
7.5.2.5 CPU processing
On detecting an interrupt, the CPU pushes the contents of PC, PSR, r0-r3, r12 and LR to the stack then
enter the ISR.
7.5.2.6 Interrupt Service Routine (ISR)
An ISR requires specific programming according to the application to be used. This section describes
what is recommended at the service routine programming and how the source is cleared.
(1)
Pushing during ISR
An ISR normally pushes register contents to the stack and handles an interrupt as required. The Cor-
tex-M3 core automatically pushes the contents of PC, PSR, r0-r3, r12 and LR to the stack. No extra
programming is required for them.
Push the contents of other registers if needed.
Interrupt requests with higher priority and exceptions such as NMI are accepted even when an
ISR is being executed. We recommend you to push the contents of general-purpose registers that
might be rewritten.
(2)
Clearing an interrupt source
If an interrupt source is used for clearing a standby mode, each interrupt request must be cleared
with the CG Interrupt Request Clear (CGICRCG) Register.
If an interrupt source is set as level-sensitive, an interrupt request continues to exist until it is
cleared at its source. Therefore, the interrupt source must be cleared. Clearing the interrupt source au-
tomatically clears the interrupt request signal from the clock generator.
If an interrupt is set as edge-sensitive, clear an interrupt request by setting the corresponding val-
ue in the CGICRCG register. When an active edge occurs again, a new interrupt request will be detec-
ted.
TMPM3V6/M3V4
7. Exceptions
7.5 Interrupts
Page 94
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: ......