R5F21133DFP RENESAS [Renesas Technology Corp], R5F21133DFP Datasheet - Page 203

no-image

R5F21133DFP

Manufacturer Part Number
R5F21133DFP
Description
16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY/R8C/Tiny SERIES
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
R5F21133DFP#U0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
R8C/13 Group
Rev.1.20
REJ09B0111-0120
19.4 Timers
19.4.1 Timers X, Y and Z
19.4.2 Timer X
19.4.3 Timer Y
19.4.4 Timer Z
19.4.5 Timer C
(1) Timers X, Y and Z stop counting after reset. Therefore, a value must be set to these timers and
(2) Even if the prescalers and timers are read out simultaneously in 16-bit units, these registers are
(1) Do not rewrite the TXMOD0 to TXMOD1 bits, the TXMOD2 bit and TXS bit simultaneously.
(2) In pulse period measurement mode, the TXEDG bit and TXUND bit in the TXMR register can be
Example (when setting TXEDG bit to “0”):
(3) When changing to pulse period measurement mode from other mode, the contents of the TXEDG bit
(4) The prescaler X underflow which is generated for the first time after the count start may cause that
(1) Do not rewrite the TYMOD0 and TYS bits simultaneously.
(1) Do not rewrite the TZMOD0 to TZMOD1 bits and the TZS bit simultaneously.
(2) In programmable one-shot generation mode and programmable wait one-shot generation mode,
(1) Access the TC, TM0 and TM1 registers in 16-bit units.
Jan 27, 2006
set to “0” by writing “0” to these bits in a program. However, these bits remain unchanged when “1”
is written. To set one flag to “0” in a program, write "1" to the other flag by using the MOV instruction.
(This prevents any unintended changes of flag.)
This prevents the timer value from being updated between the low-order byte and high-order byte
prescalers before starting counting.
read byte-by-byte in the microcomputer. Consequently, the timer value may be updated during the
period these two registers are being read.
MOV.B
and TXUND bit are indeterminate. Write "0" to the TXEDG bit and TXUND bit before starting counting.
the TXEDG bit is set to “1”. When using the pulse period measurement mode, leave more than
two periods of the prescaler X right after count starts and set the TXEDG bit to “0”.
TZOC register to “0” (stops one-shot), the timer reloads the value of reload register and stops.
Therefore, the timer count value should be read out in programmable one-shot generation mode
and programmable wait one-shot generation mode before the timer stops.
are being read.
Example (when Timer C is read):
when setting the TZS bit in the TC register to “0” (stops counting) or setting the TZOS bit in the
MOV.W
page 192 of 205
#10XXXXXXB,008BH
0090H,R0
; Read out timer C
19. Usage Notes

Related parts for R5F21133DFP