Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

TMP86PM29BUG Datasheet(PDF) 91 Page - Toshiba Semiconductor

Part # TMP86PM29BUG
Description  8 Bit Microcontroller
PDF  204 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

TMP86PM29BUG Datasheet(HTML) 91 Page - Toshiba Semiconductor

Back Button TMP86PM29BUG Datasheet HTML 87Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 88Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 89Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 90Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 91Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 92Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 93Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 94Page - Toshiba Semiconductor TMP86PM29BUG Datasheet HTML 95Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 91 / 204 page
background image
Page 77
TMP86PM29BUG
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
(EIRH). 0
; Clear bit0 of EIRH
LD
(TC1CR1), 00011010B
; Stop timer couter 1
LD
(ILH), 11111110B
; Clear bit0 of ILH
SET
(EIRH). 0
; Set bit0 of EIRH
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