Electronic Components Datasheet Search
  English  ▼

X  

7540 Datasheet(PDF) 134 Page - Renesas Technology Corp

Part # 7540
Description  8-BIT CISC SINGLE-CHIP MICROCOMPUTER 740 FAMILY / 740 SERIES
PDF  366 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

7540 Datasheet(HTML) 134 Page - Renesas Technology Corp

Back Button 7540 Datasheet HTML 130Page - Renesas Technology Corp 7540 Datasheet HTML 131Page - Renesas Technology Corp 7540 Datasheet HTML 132Page - Renesas Technology Corp 7540 Datasheet HTML 133Page - Renesas Technology Corp 7540 Datasheet HTML 134Page - Renesas Technology Corp 7540 Datasheet HTML 135Page - Renesas Technology Corp 7540 Datasheet HTML 136Page - Renesas Technology Corp 7540 Datasheet HTML 137Page - Renesas Technology Corp 7540 Datasheet HTML 138Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 134 / 366 page
background image
2-58
REJ09B0018-0200Z
Rev.2.00
Jun 21, 2004
APPLICATION
7540 Group
2.4 Timer X
2.4.6 Pulse width measurement mode
(1) Operation description
In the pulse width measurement mode, the pulse width of the signal input to P14/CNTR0 pin is
measured.
The operation of Timer X can be controlled by the level of the signal input from the CNTR0 pin.
When the CNTR0 active edge switch bit is “0”, the signal selected by the timer X count source
selection bit is counted while the input signal level of CNTR0 pin is “H”. The count is stopped while
the pin is “L”. Also,
when the CNTR0 active edge switch bit is “1”, the signal selected by the timer X count source
selection bit is counted while the input signal level of CNTR0 pin is “L”. The count is stopped while
the pin is “H”.
Timer X can stop counting by setting “1” to the timer X count stop bit.
Also, when Timer X underflows, the timer X interrupt request bit is set to “1”.
(2) Pulse width HL continuously measurement mode setting method
Figure 2.4.23 and Figure 2.4.24 show the setting method for pulse width measurement mode of timer X.
Fig. 2.4.23 Setting method for pulse width measurement mode (1)
b7b0
b7b0
1
1
1
b7b0
0
0
b7b0
00
Process 1: Disable timer X interrupt and CNTR0 interrupt.
Interrupt control register 1 (ICON1) [Address 3E16]
CNTR0 interrupt disabled
Timer X interrupt disabled
Port P1 direction register (P1D) [Address 0316]
Set the P14/CNTR0 pin to the input mode
Process 2: Set the CNTR0 pin to the input mode.
Process 3: Set timer X mode register.
Timer X mode register (TXM) [Address 2B16]
Pulse width measurement mode
CNTR0 active edge switch
0: “H” level width measurement
1: “L” level width measurement
Timer X count stop
Note: f(XIN) can be used only when a ceramic resonator or an on-chip oscillator is used.
Do not use f(XIN) at RC oscillation.
Process 4: Set timer X count source.
Timer count source set register (TCSS) [Address 2E16]
Timer X count source selection bits
b1 b0
0 0 : f(XIN)/16
0 1 : f(XIN)/2
1 0 : f(XIN) (Note)
1 1 : Not available



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