Interrupt requests from external pins can be used without setting the clock generator if they are
not used for exiting a standby mode. However, an "High" pulse or "High"-level signal must be in-
put so that the CPU can detect it as an interrupt request. Also, be aware of the description
of"7.5.1.4 Precautions when using external interrupt pins".
Clock generator register
CGIMCGn<EMCGm>
←
active level
CGICRCG<ICRCG>
←
Value corresponding to the interrupt to be used
CGIMCGn<INTmEN>
←
"1" (interrupt enabled)
Note:
n: register number / m: number assigned to interrupt source
(7)
Enabling interrupt by CPU
Enable the interrupt by the CPU as shown below.
Clear the suspended interrupt in the Interrupt Clear-Pending Register. Enable the intended inter-
rupt with the Interrupt Set-Enable Register. Each bit of the register is assigned to a single interrupt
source.
Writing "1" to the corresponding bit of the Interrupt Clear-Pending Register clears the suspended in-
terrupt. Writing "1" to the corresponding bit of the Interrupt Set-Enable Register enables the inten-
ded interrupt.
To generate interrupts in the Interrupt Set-Pending Register setting, factors to trigger interrupts
are lost if pending interrupts are cleared. Thus, this operation is not necessary.
At the end, PRIMASK register is zero cleared.
NVIC register
Interrupt Clear-Pending [m]
←
"1"
Interrupt Set-Enable [m]
←
"1"
Interrupt mask register
PRIMASK
←
"0"
Note 1:
m : corresponding bit
Note 2:
PRIMASK register cannot be modified by the user access level.
7.5.2.3 Detection by Clock Generator
If an interrupt source is used for exiting a standby mode, an interrupt request is detected according to
the active level specified in the clock generator, and is notified to the CPU.
An edge-triggered interrupt request, once detected, is held in the clock generator. A level-sensitive inter-
rupt request must be held at the active level until it is detected, otherwise the interrupt request will cease
to exist when the signal level changes from active to inactive.
When the clock generator detects an interrupt request, it keeps sending the interrupt signal in "High" lev-
el to the CPU until the interrupt request is cleared in the CG Interrupt Request Clear (CGICRCG) Regis-
ter. If a standby mode is exited without clearing the interrupt request, the same interrupt will be detected
again when normal operation is resumed. Be sure to clear each interrupt request in the ISR.
TMPM3V6/M3V4
Page 93
2019-02-06
Summary of Contents for TMPM3V4
Page 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Page 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Page 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Page 8: ......
Page 22: ...xiv ...
Page 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Page 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Page 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Page 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Page 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Page 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Page 544: ......