Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

TMP86FS23UG Datasheet(PDF) 97 Page - Toshiba Semiconductor

Part # TMP86FS23UG
Description  8 Bit Microcontroller
PDF  252 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

TMP86FS23UG Datasheet(HTML) 97 Page - Toshiba Semiconductor

Back Button TMP86FS23UG Datasheet HTML 93Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 94Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 95Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 96Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 97Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 98Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 99Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 100Page - Toshiba Semiconductor TMP86FS23UG Datasheet HTML 101Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 97 / 252 page
background image
Page 85
TMP86FS23UG
8.3.3 Pulse Width Measurement mode
In this mode, pulse widths are counted on the falling edge of logical AND-ed pulse between ECIN pin input
(window pulse) and the internal clock. When using this mode, set TC1CR1<TC1CK> to suitable internal clock
and then set TC1CR2<SEG> to “0” (Both edges can not be used).
An INTTC1 interrupt is generated when the ECIN input detects the falling edge of the window pulse or both
rising and falling edges of the window pulse, that can be selected by TC1CR2<SGEDG>.
The contents of TREG1A should be read while the count is stopped (ECIN pin is low), then clear the counter
using TC1CR1<TC1C> (Normally, execute these process in the interrupt program).
When the counter is not cleared by TC1CR1<TC1C>, counting-up resumes from previous stopping value.
When up counter is counted up from 3FFFFH to 00000H, an overflow occurs. At that time, TC1SR<HEOVF>
is set to “1”. TC1SR<HEOVF> remains the previous data until the counter is required to be cleared by
TC1CR1<TC1C>.
Note:In pulse width measurement mode, if TC1CR1<TC1S> is written to "00" while ECIN input is "1", INTTC1 inter-
rupt occurs. According to the following step, when timer counter is stopped, INTTC1 interrupt latch should be
cleared to "0".
Note 1: When SGEDG (window gate pulse interrupt edge select) is set to both edges and ECIN pin input is "1" in
the pulse width measurement mode, an INTTC1 interrupt is generated by setting TC1S (TC1 start control)
to "10" (start).
Note 2: In the pulse width measurement mode, HECF (operating status monitor) cannot used.
Note 3: Because the up counter is counted on the falling edge of logical AND-ed pulse (between ECIN pin input and
the internal clock), if ECIN input becomes falling edge while internal source clock is "H" level, the up
counter stops plus "1".
Figure 8-4 Pulse width measurement mode timing chart
Example :
TC1STOP :
¦
¦
DI
; Clear IMF
CLR
(EIRL). 7
; Clear bit7 of EIRL
LD
(TC1CR1), 00011010B
; Stop timer couter 1
LD
(ILL), 01111111B
; Clear bit7 of ILL
SET
(EIRL). 7
; Set bit7 of EIRL
EI
; Set IMF
¦
¦
1
0
2
3
n-2
n-1
n
n+1
0
12
ECIN pin input
INTTC1 interrupt
Internal clock
AND-ed pulse
(Internal signal)
Up counter
TC1CR1<TC1C>
Interrupt
Read Clear
Count Start
Count Start
Count Stop



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