Electronic Components Datasheet Search
  English  ▼

X  

TMP89FS60 Datasheet(PDF) 50 Page - Toshiba Semiconductor

Part # TMP89FS60
Description  8 Bit Microcontroller
PDF  410 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TOSHIBA [Toshiba Semiconductor]
Direct Link  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP89FS60 Datasheet(HTML) 50 Page - Toshiba Semiconductor

Back Button TMP89FS60 Datasheet HTML 46Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 47Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 48Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 49Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 50Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 51Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 52Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 53Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 54Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 50 / 410 page
background image
Page 36
2. CPU Core
2.3 System clock controller
TMP89FS60
RA001
(2)
Switching from the SLOW1 mode to the NORMAL1 mode
Set SYSCR2<XEN> to "1" to enable the high-frequency clock (fc) to oscillate. Confirm at the
warm-up counter that the oscillation of the basic clock for the high-frequency clock has stabilized,
and then clear SYSCR2<SYSCK> to "0".
When a maximum of 8/fs + 2.5/fcgck [s] has elapsed since SYSCR2<SYSCK> is cleared to "0",
the main system clock (fm) is switched to fcgck.
After switching, wait for 2 machine cycles or longer, and then clear SYSCR2<XTEN> to "0" to
turn off the low-frequency clock oscillator.
The SLOW mode is also released by a reset by the RESET pin, a power-on reset and a reset by the
voltage detection circuits. When a reset is released, the warm-up starts. After the warm-up is com-
pleted, the NORMAL1 mode becomes active.
Note 1: Be sure to follow this procedure to switch the operation from the SLOW1 mode to the
NORMAL1 mode.
Note 2: After switching SYSCR2<SYSCK>, be sure to wait for 2 machine cycles or longer before clear-
ing SYSCR2<XTEN> to "0". Clearing it within 2 machine cycles causes a system clock reset.
Note 3: When the main system clock (fm) is switched, the gear clock (fcgck) is synchronized with the
clock that is a quarter of the basic clock (fs) for the low-frequency clock. For the synchronization,
fm is stopped for a period of 2.5/fcgck [s] or shorter.
Note 4: When P0FC0 is "0", setting SYSCR2<XEN> to "1" causes a system clock reset.
Note 5: When SYSCR2<XEN> is set at "1", writing "1" to SYSCR2<XEN> does not cause the warm-up
counter to start counting the source clock.
Example 1: Switching from the NORMAL2 mode to the SLOW1 mode (when fc is used as the basic clock for the high-fre-
quency clock)
SET
(SYSCR2).4
; SYSCR2<SYSCK> = 1
; (Switches the main system clock to the basic clock for the low-frequen-
cy clock for the SLOW2 mode)
NOP
; Waits for 2 machine cycles
NOP
CLR
(SYSCR2).6
; SYSCR2<XEN> = 0
(Turns off the high-frequency clock oscillation circuit)
Example 2: Switching to the SLOW1 mode after the stable oscillation of the low-frequency clock oscillation circuit is con-
firmed at the warm-up counter (fs=32.768KHz, warm-up time = about 100 ms)
; #### Initialize routine ####
SET
(P0FC).2
; P0FC2 = 1
(Uses P02/03 as oscillators)
¦
¦
LD
(WUCCR), 0x02
; WUCCR<WUCDIV> = 00 (No division)
WUCCR<WUCSEL> = 1 (Selects fs as the source clock)
LD
(WUCDR), 0x33
; Sets the warm-up time
(Determines the time depending on the oscillator characteristics)
100 ms/1.95 ms = 51.2
→ round up to 0x33
SET
(EIRL).4
; Enables INTWUC interrupts
SET
(SYSCR2).5
; SYSCR2<XTEN> = 1
(Starts the low-frequency clock oscillation and starts the warm-up
counter)
¦
; #### Interrupt service routine of warm-up counter interrupts ####
PINTWUC:
SET
(SYSCR2).4
; SYSCR2<SYSCK> = 1
(Switches the main system clock to the low-frequency clock)
NOP
; Waits for 2 machine cycles
NOP
CLR
(SYSCR2).6
; SYSCR2<XEN> = 0 (Turns off the high-frequency clock oscillation cir-
cuit)
RETI
¦
VINTWUC:
DW
PINTWUC
; INTWUC vector table



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com