Renesas R8C/17 Podręcznik Użytkownika Strona 75

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 97
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 74
68
SmartBook for Renesas R8C/Tiny Microcontrollers
www.MightyMicons.com
7.5 Pulse Period Measurement Mode:
This mode of operation is similar to the pulse width
measuring mode with a difference. In the pulse width
measurement, the counter takes all the input clocks
into account when the selected level of the input sig-
nal remains stable and available. With the pulse pe-
riod measurement mode, the timer counts down all the
input signals between either two rising or falling edges.
7.6 Pulse Output Mode:
When the timers are configured for this pulse output mode, the
underflow of the timing register changes the output level at the speci-
fied pins to generate the pulse of required duration.
Two output pins are assigned to these selected timers under the proper initializa-
tion. One output pin is controlled by the timing register and the other output pin
always indicates the inverted signal of the timer output.
The following figure indicates the operation of the pulse output mode format for
Timer X.
Apart from this timer, only Timer RA has this pulse output generating facility. The
Timer X has two pins to indicate timing outputs: CNTR0 and Complement output
of CNTR0. When the timer underflows, the polarity of the signal at the output
changes. During the underflow, both the prescalar and the timing registers are set
again with the contents of the reload registers and the counting keeps going. The
waveform at the timer output always has 50% duty cycle. During the configura-
D
a
t
a
4
D
e
s
i
g
n
With the pulse period mea-
surement mode
, the timer
counts down all the input
signals between either two
rising or falling edges.
When the timers are
configured for the pulse output mode, the
underflow of the timing register changes
the output level at the specified pins
to generate the pulse of required
duration. The waveform at
the timer output always
has 50% duty
cycle.
Przeglądanie stron 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 96 97

Komentarze do niniejszej Instrukcji

Brak uwag