r5f21368sdfp Renesas Electronics Corporation., r5f21368sdfp Datasheet - Page 285

no-image

r5f21368sdfp

Manufacturer Part Number
r5f21368sdfp
Description
Renesas Mcu R8c Family / R8c/3xt-a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r5f21368sdfp#V0
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Under development
R8C/36T-A Group
R01UH0240EJ0001 Rev.0.01
Apr 28, 2011
16.4.2
In the 8-bit timer with 8-bit prescaler, the values in registers TRBPR and TRBSC are counted alternately.
In the 16-bit timer, the lower 8 bits are counted by the TRBPRE register and the higher 8 bits are counted by
registers TRBPR and TRBSC alternately.
The TRBO pin outputs a signal which is inverted each time the counter underflows. The count is started from
the value set in the TRBPR register. In programmable waveform generation mode, the TRBOCR register is not
used.
When 1 (count starts) is written to the TSTART bit in the TRBCR register, the count is started. When 0 (count
stops) is written to the TSTART bit, the count is stopped. When 1 (count is forcibly stopped) is written to the
TSTOP bit in the TRBCR register, the count is stopped.
An interrupt request is generated when timer RB2 underflows during the secondary period.
When registers TRBPRE and TRBPR are read, each count value can be read. When registers TRBPRE,
TRBPR, and TRBSC are written while the count is stopped, values are written to both the reload register and
counter, respectively. When these registers are written during count operation, values are written to the reload
register and then transferred to the counter at the next reload operation.
Figure 16.3 shows an Example of 8-Bit Timer with 8-Bit Prescaler Operation in Programmable Waveform
Generation Mode. Figure 16.4 shows an Example of 16-Bit Timer Operation in Programmable Waveform
Generation Mode.
Note:
1. The count is started after three cycles of the count source when the TSTART bit is set.
Programmable Waveform Generation Mode
Monitor the TCSTF bit in the TRBCR register to confirm the operating state of the counter.
Preliminary document
Specifications in this document are tentative and subject to change.
Page 254 of 725
16. Timer RB2

Related parts for r5f21368sdfp