r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 737

no-image

r5f21346mnfp

Manufacturer Part Number
r5f21346mnfp
Description
Single-chip Mcus Incorporates The R8c Cpu Core
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21346mnfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/34M Group
R01UH0131EJ0100 Rev.1.00
Jun 21, 2011
Figure 35.1
35.2.4
The IR bit in the interrupt control register may be set to 1 (interrupt requested) when the interrupt source
changes. To use an interrupt, set the IR bit to 0 (no interrupt requested) after changing interrupt sources.
Changing interrupt sources as referred to here includes all factors that change the source, polarity, or timing of
the interrupt assigned to a software interrupt number. Therefore, if a mode change of a peripheral function
involves the source, polarity, or timing of an interrupt, set the IR bit to 0 (no interrupt requested) after making
these changes. Refer to the descriptions of the individual peripheral functions for related interrupts.
Figure 35.1 shows a Procedure Example for Changing Interrupt Sources.
IR bit: The interrupt control register bit for the interrupt whose source is to be changed
Notes:
1. The above settings must be executed individually. Do not execute two or more settings
2. To prevent interrupt requests from being generated, disable the peripheral function
3. To change the interrupt source to the input with the digital filter used, wait for three or
Changing Interrupt Sources
simultaneously (using one instruction).
before changing the interrupt source. In this case, use the I flag if all maskable
interrupts can be disabled.
If all maskable interrupts cannot be disabled, use bits ILVL0 to ILVL2 for the interrupt
whose source is to be changed.
more cycles of the sampling clock of the digital filter before setting the IR bit to 0 (no
interrupt request). Refer to 11.8.5 Rewriting Interrupt Control Register for the
instructions to use and related notes.
Procedure Example for Changing Interrupt Sources
Set the IR bit to 0 (no interrupt request)
(including mode of peripheral function)
using the MOV instruction
Change interrupt sources
Interrupt source change
Disable interrupts
Enable interrupts
Change completed
(2, 3)
(2, 3)
(3)
35. Usage Notes
Page 705 of 740

Related parts for r5f21346mnfp