Electronic Components Datasheet Search
  English  ▼

X  

7721 Datasheet(PDF) 188 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) 188 Page - Renesas Technology Corp

Back Button 7721 Datasheet HTML 184Page - Renesas Technology Corp 7721 Datasheet HTML 185Page - Renesas Technology Corp 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 188 / 577 page
background image
TIMER B
7721 Group User’s Manual
9–21
9.5 Pulse period/Pulse width measurement mode
9.5.1 Setting for pulse period/pulse width measurement mode
Figure 9.5.2 shows an initial setting example for registers relevant to the pulse period/pulse width measurement
mode.
Note that when using interrupts, set up to enable the interrupts. For details, refer to “CHAPTER 7.
INTERRUPTS.”
Fig. 9.5.2 Initial setting example for registers relevant to pulse period/pulse width measurement mode
Count starts
b7
b0
Measurement mode select bits
10
Selecting pulse period/pulse width measurement mode and each function
Timer Bj mode register (i = 0, 1) (Addresses 5B16, 5C16)
Setting count start bit to “1”
b7
b0
Count start register (Address 4016)
Timer B0 count start bit
Timer B1 count start bit
b3 b2
Count source select bits
b7 b6
Timer Bj overflow flag (Note)
0: No overflow
1: Overflowed
Setting port P5 direction register
b7
b0
Port P5 direction register (Address D16)
Clear the corresponding bit to “0.”
TB0IN pin
TB1IN pin
0 0 : Pulse period measurement (Interval between falling edges
of measurement pulse)
0 1 : Pulse period measurement (Interval between rising edges
of measurement pulse)
1 0 : Pulse width measurement
1 1 : Do not select.
0 0 : f2
0 1 : f16
1 0 : f64
1 1 : f512
Note: The timer Bj overflow flag is a read-only bit. This bit is undefined after reset. When a value is written to the timer Bj mode register with
the count start bit = “1,” this bit is cleared to “0” at the next count timing of the count source.
Setting interrupt priority level
b7
b0
Timer Bj interrupt control register (j = 0, 1)
(Addresses 7A16, 7B16)
Interrupt priority level select bits
When using interrupts, set these bits to one of levels
1 to 7.
When disabling interrupts, set these bits to level 0.
Selection of pulse period/pulse width measurement mode



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