Electronic Components Datasheet Search
  English  ▼

X  

7721 Datasheet(PDF) 190 Page - Renesas Technology Corp

Part # 7721
Description  16-BIT SINGLE-CHIP MICROCOMPUTER
PDF  577 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

7721 Datasheet(HTML) 190 Page - Renesas Technology Corp

Back Button 7721 Datasheet HTML 186Page - Renesas Technology Corp 7721 Datasheet HTML 187Page - Renesas Technology Corp 7721 Datasheet HTML 188Page - Renesas Technology Corp 7721 Datasheet HTML 189Page - Renesas Technology Corp 7721 Datasheet HTML 190Page - Renesas Technology Corp 7721 Datasheet HTML 191Page - Renesas Technology Corp 7721 Datasheet HTML 192Page - Renesas Technology Corp 7721 Datasheet HTML 193Page - Renesas Technology Corp 7721 Datasheet HTML 194Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 190 / 577 page
background image
TIMER B
7721 Group User’s Manual
9–23
9.5 Pulse period/Pulse width measurement mode
9.5.3 Operation in pulse period/pulse width measurement mode
Œ When the count start bit is set to “1,” the counter starts counting of the count source.
 The counter value is transferred to the reload register when an valid edge of the measurement pulse
is detected. (Refer to section “(1) Pulse period/Pulse width measurement.”)
Ž The counter value is cleared to “000016” after the transfer in , and the counter continues counting.
 The timer Bj interrupt request bit is set to “1” when the counter value is cleared to “000016” in Ž (Note).
The interrupt request bit remains set to “1” until the interrupt request is accepted or the interrupt request
bit is cleared to “0” by software.
 The timer repeats operations  to  above.
Note: No timer Bj interrupt request occurs when the first valid edge is input after the counter starts counting.
(1)
Pulse period/Pulse width measurement
The measurement mode select bits (bits 2 and 3 at addresses 5B16 and 5C16) specify whether the
pulse period of an external signal is measured or its pulse width is done. Table 9.5.3 lists the
relationship between the measurement mode select bits and the pulse period/pulse width measurements.
Make sure that the measurement pulse interval from the falling edge to the rising edge, and vice
versa are two cycles of the count source or more. Additionally, use software to identify whether the
measurement result indicates the “H” level or the “L” level width.
Table 9.5.3 Relationship between measurement mode select bits and pulse period/pulse width measurements
b3
0
0
1
Pulse period/Pulse width measurement
Pulse period measurement
Pulse width measurement
Measurement interval (Valid edges)
From falling edge to falling edge (Falling edges)
From rising edge to rising edge (Rising edges)
From falling edge to rising edge, and vice versa
(Falling and rising edges)
b2
0
1
0
(2)
Timer Bj overflow flag
A timer Bj interrupt request occurs when a measurement pulse’s valid edge is input or a counter
overflow occurs. The timer Bj overflow flag is used to identify the cause of the interrupt request, that
is, whether it is an overflow occurrence or a valid edge input.
The timer Bj overflow flag is set to “1” by an overflow. Accordingly, the cause of the interrupt request
occurrence is identified by checking the timer Bj overflow flag in the interrupt routine. When a value
is written to the timer Bj mode register with the count start bit = “1,” the timer Bj overflow flag is
cleared to “0” at the next count timing of the count source
The timer Bj overflow flag is a read-only bit.
Use the timer Bi interrupt request bit to detect the overflow timing. Do not use the timer Bi overflow
flag for this detection.
Figure 9.5.3 shows the operation during pulse period measurement. Figure 9.5.4 shows the operation
during pulse width measurement.



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