Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

TMP89FS60 Datasheet(PDF) 162 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) 162 Page - Toshiba Semiconductor

Back Button TMP89FS60 Datasheet HTML 158Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 159Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 160Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 161Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 162Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 163Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 164Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 165Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 166Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 162 / 410 page
background image
Page 148
13. 16-bit Timer Counter (TCA)
13.4 Timer Function
TMP89FS60
RA001
13.4 Timer Function
Timer counter A0 has six types of operation modes; timer, external trigger timer, event counter, window, pulse
width measurement and programmable pulse generate (PPG) output modes.
13.4.1 Timer mode
In the timer mode, the up-counter counts up using the internal clock, and interrupts can be generated regu-
larly at specified times.
13.4.1.1 Setting
Setting the operation mode selection TA0MOD<TA0M> to "000" or "001" activates the timer mode.
Select the source clock at TA0MOD<TA0CK>.
Setting TA0CR<TA0S> to "1" starts the timer operation. After the timer is started, writing to TA0MOD
and TA0CR<TA0OVE> becomes invalid. Be sure to complete the required mode settings before starting
the timer.
13.4.1.2 Operation
Setting TA0CR<TA0S> to "1" allows the 16-bit up counter to increment based on the selected internal
source clock. When a match between the up-counter value and the value set to timer register A
(TA0DRA) is detected, an INTTA0 interrupt request is generated and the up counter is cleared to
"0000H". After being cleared, the up counter continues counting. Setting TA0CR<TA0S> to "0" during
the timer operation causes the up counter to stop counting and be cleared to "0000H".
13.4.1.3 Auto capture
The latest contents of the up counter can be taken into timer register B (TA0DRB) by setting
TA0CR<TA0ACAP> to "1" (auto capture function). When TA0CR<TA0ACAP> is "1", the current con-
tents of the up counter can be read by reading TA0DRBL. TA0DRBH is loaded at the same time as
TA0DRBL is read. Therefore, when reading the captured value, be sure to read TA0DRBL and
TA0DRBH in this order. (The capture time is the timing when TA0DRBL is read.) The auto capture func-
tion can be used whether the timer is operating or stopped. When the timer is stopped, TA0DRBL is read
as "00H". TA0DRBH keeps the captured value after the timer stops, but it is cleared to "00H" when
TA0DRBL is read while the timer is stopped.
If the timer is started with TA0CR<TA0ACAP> written to "1", the auto capture is enabled immediately
after the timer is started.
Note 1: The value set to TA0CR<TA0ACAP> cannot be changed at the same time as TA0CR<TA0S> is
rewritten from "1" to "0". (This setting is invalid.)
Table 13-3 Timer Mode Resolution and Maximum Time Setting
TA0MOD
<TA0CK>
Source clock [Hz]
Resolution
Maximum time setting
NORMAL 1/2 or IDLE 1/2 mode
SLOW1/2 or
SLEEP1 mode
fcgck=8MHz
fs=32.768KHz
fcgck=8MHz
fs=32.768KHz
SYSCR1<DV9CK>
= "0"
SYSCR1<DV9CK>
= "1"
00
fcgck/210
fs/23
fs/23
128
µs
244.1us
8.4s
16s
01
fcgck/26
fcgck/26
-8
µs
-
524.3ms
-
10
fcgck/22
fcgck/22
-
500ns
-
32.8ms
-
11
fcgck/2
fcgck/2
-
250ns
-
16.4ms
-



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