Renesas R8C/15 Technical Information Seite 98

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 279
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 97
R8C/14 Group, R8C/15 Group 13. Timers
Rev.2.10 Jan 19, 2006 Page 84 of 253
REJ09B0164-0210
13.1 Timer X
Timer X is an 8-bit timer with an 8-bit prescaler.
The prescaler and timer consist of the reload register and counter. The reload register and counter are
allocated at the same address. When accessing the PREX and TX registers, the reload register and
counter can be accessed (Refer to Tables 13.2 to 13.6 the Specification of Each Modes).
Figure 13.1 shows the Block Diagram of Timer X. Figures 13.2 and 13.3 show the registers associated
with Timer X.
Timer X contains five operating modes listed as follows:
Timer mode: The timer counts an internal count source.
Pulse output mode: The timer counts an internal count source and outputs the
pulses which inverts the polarity by underflow of the timer.
Event counter mode: The timer counts external pulses.
Pulse width measurement mode: The timer measures the pulse width of an external pulse
Pulse period measurement mode: The timer measures the pulse period of an external pulse.
Figure 13.1 Block Diagram of Timer X
=00b
=01b
=11b
f2
f8
f1
=10b
fRING
TXCK1 to TXCK0
TXMOD1 to TXMOD0
=00b or 01b
=11b
=10b
TXS bit
Counter
Reload register
PREX register
Counter
Reload register
TX register
Data bus
Timer X interrupt
INT1 interrupt
Write to TX register
TXMOD1 to TXMOD0 bits=01b
TXMOD0 to TXMOD1, R0EDG, TXS, TXOCNT : Bits in TXMR register
TXCK0 to TXCK1 : Bits in TCSS register
CNTRSEL : Bit in UCON register
Toggle flip-flop
Q
Q
CLR
CK
R0EDG=1
R0EDG=0
Polarity
switching
TXOCNT bit
CNTR0
TXMOD1 to TXMOD0
bits=01b
INT11/CNTR01
INT10/CNTR00
CNTRSEL=1
CNTRSEL=0
Seitenansicht 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 278 279

Kommentare zu diesen Handbüchern

Keine Kommentare