r5f21346mnfp Renesas Electronics Corporation., r5f21346mnfp Datasheet - Page 148

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
9.2.3
Notes:
1. When the MCU exits wait mode by a peripheral function interrupt, the CM30 bit is set to 0 (other than wait mode).
2. Set the CM35 bit to 0 in stop mode. When the MCU enters wait mode, if the CM35 bit is set to 1 (no division), the
3. When the high-speed on-chip oscillator mode is selected as the system clock, do not enter stop mode while bits
4. When bits CM37 and CM36 are set to 11b (XIN clock selected), the following will be set when the MCU exits wait
5. When the low-speed clock mode is selected for the system clock, do not enter wait mode or stop mode under
CM30 bit (Wait Control Bit)
After Reset
Bit
b0
b1
b2
b3
b4
b5
b6
b7
Address 0009h
CM06 bit in the CM0 register is set to 0 (bits CM16 and CM17 enabled) and bits CM17 and CM16 in the CM1
register is set to 00b (no division mode).
mode or stop mode.
• OM05 bit in OM0 register = 0 (XIN clock oscillates)
• OM13 bit in OM1 register = 1 (XIN-XOUT pin)
• OCD2 bit in OCD register = 0 (XIN clock selected)
When the MCU enters wait mode while the CM05 bit in the CM0 register is 1 (XIN clock stops), if the XIN clock is
selected as the CPU clock when exiting wait mode, set the CM06 bit to 1 (divide-by-8 mode) and the CM35 bit to
0.
However, if an externally generated clock is used as the XIN clock, do not set bits CM37 to CM36 to 11b (XIN
clock selected).
this setting.
Set the PRC0 bit in the PRCR register to 1 (write enabled) before rewriting the CM3 register.
When the CM30 bit is set to 1 (MCU enters wait mode), the CPU clock stops (wait mode). Since the XIN clock,
XCIN clock, and the on-chip oscillator clock do not stop, the peripheral functions using these clocks continue
operating. To set the CM30 bit to 1, set the I flag to 0 (maskable interrupt disabled).
The MCU exits wait mode by a reset or peripheral function interrupt. When the MCU exits wait mode by a
peripheral function interrupt, it resumes executing the instruction immediately after the instruction to set the
CM30 bit to 1.
When the MCU enters wait mode with the WAIT instruction, make sure to set the I flag to 1 (maskable interrupt
enabled). With this setting, interrupt handling is performed by the CPU when the MCU exits wait mode.
Symbol
Symbol
Bit
CM30
CM35
CM36
CM37
System Clock Control Register 3 (CM3)
CM37
b7
0
Wait control bit
Nothing is assigned. If necessary, set to 0. When read, the content is 0.
Reserved bits
CPU clock division when exiting
wait mode select bit
System clock when exiting wait
mode or stop mode select bit
CM36
b6
0
Bit Name
(1)
CM35
b5
(2)
0
b4
0
0: Other than wait mode
1: MCU enters wait mode
Set to 0.
0: Following settings are enabled:
1: No division
b7 b6
0 0: MCU exits with the CPU clock immediately
0 1: Do not set.
1 0: Do not set.
1 1: XIN clock selected
CM06 bit in CM0 register
Bits CM16 and CM17 in CM1 register
b3
0
before entering wait or stop mode
b2
0
Function
(4, 5)
b1
0
9. Clock Generation Circuit
CM30
b0
0
(3)
Page 116 of 740
R/W
R/W
R/W
R/W
R/W
R/W

Related parts for r5f21346mnfp