Osc Setup (Internal Oscillation >>> External Clock Input); Osc Setup (External Oscillation/External Clock Input >>> Internal Oscillation) - Toshiba TXZ+ TMPM4MNFYAFG Reference Manual

32-bit risc microcontroller, clock control and operation mode
Table of Contents

Advertisement

(2) f
setup (Internal oscillation >>> External clock input)
OSC
As a f
setup, the example of switching procedure to the external clock input (EHCLKIN) from an internal high
OSC
speed oscillator 1(IHOSC1) is shown below.
<< The state before switching >>
[CGOSCCR]<IHOSC1EN> =1
[CGOSCCR]<OSCSEL> =0
[CGOSCCR]<OSCF> =0
Clock input to EHCLKIN
<< The example of switching procedure >>
[PHPDN]<bit[0]> =0
1
[PHIE]<bit[0]> =1
2
[CGOSCCR]<EOSCEN[1:0]> =10
3
[CGOSCCR]<OSCSEL> =1
4
[CGOSCCR]<OSCF> is read
[CGOSCCR]<IHOSC1EN> =0
5
(3) f
setup (External oscillation/External clock input >>> Internal oscillation)
OSC
As a f
setup, the example of switching procedure to the internal high speed oscillator 1 (IHOSC1) from an
OSC
external high speed oscillator (EHOSC) Operation State or an external clock input (EHCLKIN) Operation State is
shown below.
<< The state before switching >>
[CGOSCCR]<EOSCEN[1:0]> = 01 or 10
[CGOSCCR]<OSCSEL> =1
[CGOSCCR]<OSCF> =1
<< The example of switching procedure >>
1
[CGWUPHCR]<WUCLK> = 0
2
[CGWUPHCR]<WUPT[15:4]> = 0x03C
3
[CGOSCCR]<IHOSC1EN> = 1
4
[CGWUPHCR]<WUON> = 1
5
[CGWUPHCR]<WUEF> is read
6
[CGOSCCR]<OSCSEL> = 0
7
[CGOSCCR]<OSCF> is read
[CGOSCCR]<EOSCEN[1:0]> = 00
8
An internal high speed oscillator1 oscillates.
The high speed oscillation selection for f
oscillator1 (IHOSC1).
The high speed oscillation selection status for f
speed oscillator1 (IHOSC1).
Input in the proper voltage range.
Disable the pull-down resistor of X1 / EHCLKIN pin.
Enable the input control of X1 / EHCLKIN pin.
Selection of an external high speed oscillator of operation is carried out
to an external clock input (EHCLKIN).
It is high speed oscillation selection for f
oscillator.
It waits until the high speed oscillation selection status for f
external high speed oscillator (=1).
An internal high speed oscillator1 is suspended.
Selection of an external high speed oscillator of operation is an external
high speed oscillator (EHOSC) or external clock input.
The high speed oscillation selection for f
oscillator (EHOSC).
The high speed oscillation selection status for f
speed oscillator (EHOSC).
Set the warming-up clock selection to internal high speed oscillator
1(IHOSC1).
Set the high speed oscillation warming-up timer setting value to 163.4
μs(=0x3C) or more.
An internal high speed oscillator1 is oscillated.
Start the high speed oscillation warming-up timer
Wait until an warming-up timer status flag becomes ends(=1).
Set high speed oscillation selection for f
oscillator 1 (IHOSC1)
It waits until the high speed oscillation selection status for f
an internal high speed oscillator 1 (=0).
Set the selection of an external high speed oscillator operation to
unused.
20 / 64
TMPM4M Group(1)
Clock Control and Operation Mode
is an internal high speed
OSC
is an internal high
OSC
to an external high speed
OSC
is the external high speed
OSC
is the external high
OSC
to internal high speed
OSC
TXZ+ Family
becomes
OSC
becomes
OSC
2022-06-24
Rev. 1.1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cg-m4m(1)-e

Table of Contents