M38D59GCHP#U0 Renesas Electronics America, M38D59GCHP#U0 Datasheet - Page 68

IC 740/38D5 MCU QZ-ROM 80LQFP

M38D59GCHP#U0

Manufacturer Part Number
M38D59GCHP#U0
Description
IC 740/38D5 MCU QZ-ROM 80LQFP
Manufacturer
Renesas Electronics America
Series
740/38000r
Datasheet

Specifications of M38D59GCHP#U0

Core Processor
740
Core Size
8-Bit
Speed
12.5MHz
Connectivity
SIO, UART/USART
Peripherals
LCD, LED, PWM, WDT
Number Of I /o
59
Program Memory Size
48KB (48K x 8)
Program Memory Type
QzROM
Ram Size
2K x 8
Voltage - Supply (vcc/vdd)
1.8 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-20°C ~ 85°C
Package / Case
80-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
M38D59GCHP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
38D5 Group
Rev.3.04
REJ03B0158-0304
Fig. 63 State transitions of system clock
Notes 1: Switch the mode by the arrows shown between the mode blocks.
• QzROM version
• Flash memory version
OSCSEL=L
• QzROM version
OSCSEL=H
Reset release
10: When selecting the on-chip oscillator for the WDT clock, the on-chip
11: In low-speed mode, the X
12: In X
13: 12.5 MHz < f(X
14: In the flash memory version, set the on-chip oscillator stop bit to “1”
2: Timer and LCD operate in the wait mode. System is returned to the
3: The CM4 value is retained in the stop mode. When the stop mode is
4: Before executing the STP instruction, set the values to generate the
5: Execute the transition after the oscillation used in the destination
6: When system goes to on-chip oscillator mode, the oscillation
7: The on-chip oscillator can be stopped in all kinds of state of
8: In all X
9: The example assumes that 8 MHz is being applied to the X
The all modes can be switched to the stop mode or the wait mode.
source mode when the wait mode is ended.
ended, the operation mode varies as follows:
In the QzROM version: Mode set by the OSCSEL pin state
In the flash memory version: On-chip oscillator mode
The input level applied to the OSCSEL pin is determined when
executing the STP instruction.
wait time required for oscillation stabilization to timer 1 and timer 2,
and set to “0” (interrupts disabled) to the interrupt enable bits of
timer 1 and timer 2.
mode is stabilized.
stabilizing wait time is not needed.
frequency/2,4 mode.
32 kHz to the X
on-chip oscillator.
oscillator does not stop.
Also, in low-speed mode, the on-chip oscillator stops in the QzROM
version regardless of the on-chip oscillator stop bit value. The on-
chip oscillator does not stop in the flash memory version, so set this
bit to “1” to stop the oscillation.
In on-chip oscillator mode, even if this bit is set to “1”, the on-chip
oscillator oscillation does not stop in the flash memory version, but
stops in the QzROM version.
switch bit is set to “0”.
X
mode.
(oscillation stops) because OCO is in the state set by the setting
value of the on-chip oscillator stop bit.
OUT
IN
oscillation stop bit is set to “1”.
mode, the X
IN
mode, stop of on-chip oscillator is enabled.
May 20, 2008 Page 66 of 134
IN
CIN
) ≤ 16 MHz is not available in the frequency/2
IN
pin. f(OCO) indicates the oscillation frequency of
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
-X
IN
CIN
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
OUT
7
6
5
4
3
IN
CIN
oscillation (frequency/2)
=0
=0
=0
=0
=0 CM
stop
X
X
OCO oscillation
φ =f(OCO)/32
CM
CM
CM
CM
CM
CIN
X
X
OCO oscillation
φ =f(OCO)/32
CM
CM
CM
CM
CM
7
6
5
4
3
IN
oscillation (frequency/8)
IN
CIN
=0
=1
=0
=0
=0 CM
oscillation does not stop even if the X
IN
CIN
stop
)/
IN
-X
7
6
5
4
3
2
stop
7
6
5
4
3
oscillation
=1
=1
=1
=0
=0 CM
=1
=1
=0
=0
=0 CM
(6)
)/
stop
stop
COUT
8
CM5
8
CM6
=∗
On-chip oscillator mode
CM7
8
=∗
Frequency/2 mode
oscillation stops if the port X
8
Frequency/8 mode
8
=0
=0
∗ : The OCO oscillating at “0”; the OCO stopped at “1”.
CM4
CM4
CM
CM4
5
CM
CM
4
X
X
OCO oscillation
φ =f(OCO)/32
CM
CM
CM
CM
CM
X
X
OCO oscillation
φ =f(OCO)/32
CM
CM
CM
CM
CM
4
IN
CIN
IN
CIN
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
7
6
5
4
3
7
6
5
4
3
IN
stop
oscillation
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
IN
CIN
=1
=1
=1
=1
=0 CM
=1
=1
=0
=1
=0 CM
oscillation
oscillation
(6)
IN
CIN
pin and
7
6
5
4
3
oscillation (frequency/2)
CM5
7
6
5
4
3
=0
=0
=0
=1
=0 CM
oscillation (frequency/8)
oscillation
=0
=1
=0
=1
=0 CM
oscillation
CM6
IN
IN
CM7
C
IN
)/
-
)/
8
8
2
=0
8
=0
8
8
=∗
=∗
CM7
b7
b7
CM6
CM7
CM6
CM3, CM7,
CM8
(6)
CM3, CM8
CM3
(6)
CM5
CM4
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
Frequency/4 mode
IN
CIN
CM3
7
6
5
4
3
oscillation (frequency/4)
CM3
=1
=0
=0
=0
=0 CM
stop
X
X
OCO stop
φ =f(X
CM
CM
CM
CM
CM
X
X
OCO stop
φ =f(X
CM
CM
CM
CM
CM
IN
X
X
OCO stop
φ =f(X
CM
CM
CM
CM
CM
IN
CIN
IN
CIN
IN
CIN
)/
Low-speed mode
7
6
5
4
3
7
6
5
4
3
oscillation
CM6
CM7
4
7
6
5
4
3
stop
oscillation
=0 (invalid)
=0 (invalid)
=0
=1
=1 CM
=1 (invalid)
=1 (invalid)
=1
=1
=1 CM
oscillation
CM2
=0 (invalid)
=1 (invalid)
=0
=1
=1 CM
oscillation
oscillation
CIN
CIN
CIN
8
=∗
CM6
)/
)/
)/
CM5
(CM7)
2
2
2
CM1
8
8
8
=1
=1
=1
CM0
CM8
b0
b0
CM6
(CM7)
CM6
CM5
(CM7)
(14)
CM4
CPU mode register
CPUM
(address 003B
(
(
CPU mode register 2
CPUM2
(address 0011
(
(
On-chip oscillator stop bit
Not used (do not write “1”)
Not used
(returns “0” when read)
Not used (do not write “1”)
Processor mode bits
Stack page selection bit
Internal system clock selection bit
Port Xc switch bit
X
Main clock division ratio selection bit
(Valid only when CM3=0)
X
X
OCO stop
φ =f(X
CM
CM
CM
CM
CM
IN
IN
CIN
b1 b0
b7 b8
0 : Oscillating
1 : Stopped
0 0 : Single-chip mode
0 1 :
1 0 :
1 1 :
0 : 0 page
1 : 1 page
0 : Main clock selected
1 : X
0 : I/O port function (Oscillation stop)
1 : X
–X
0 : Oscillating
1 : Stopped
0 0 : f(X
0 1 : f(X
1 0 : f(X
1 1 : On-chip oscillator
7
6
5
4
3
oscillation
=1 (invalid)
=0 (invalid)
=0
=1
=1 CM
X
X
OCO oscillation or stop
φ =f(X
CM
CM
CM
CM
CM
OUT
oscillation
(includes OCO, X
CIN
IN
CIN
CIN
CIN
7
6
5
4
3
oscillation (frequency/4)
)/
CM6
CM5
CM3
=1
=0
=0
=1
=0 CM
oscillation stop bit
–X
–X
oscillation
2
Not available
IN
IN
IN
IN
16
16
8
)/
COUT
COUT
)/2 (frequency/2 mode)
)/8 (frequency/8 mode)
)/4 (frequency/4 mode)
=1
,QzROM version, OSCSEL=L, initial value: 00
, QzROM version, OSCSEL=L, initial value: E0
4
QzROM version, OSCSEL=H,initial value: 01
Flash memory version,
QzROM version, OSCSEL=H, initial value: 40
Flash memory version,
8
(11)
=∗
selected
oscillating function
IN
)
(13)
(12)
initial value: 00
initial value: E0
16
16
16
16
16
16
)
)
)
)
)
)

Related parts for M38D59GCHP#U0