r5s77631ay266bgv Renesas Electronics Corporation., r5s77631ay266bgv Datasheet - Page 766

no-image

r5s77631ay266bgv

Manufacturer Part Number
r5s77631ay266bgv
Description
Renesas 32-bit Risc Microcomputer Superhtm Risc Engine Family Sh-4a Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 19 Timer Unit (TMU)
Rev. 1.00 Oct. 01, 2007 Page 700 of 1956
REJ09B0256-0100
Note:
When an interrupt is generated, clear the source flag in the interrupt handler.
If the interrupt enabled state is set without clearing the flag, another interrupt will be generated.
Underflow interrupt
Select count clock
generation setting
Select operation
Timer constant
register setting
Set initial timer
counter value
Start count
Figure 19.2 Example of Count Operation Setting Procedure
Input capture interrupt
generation setting
(1)
(2)
(4)
(5)
(6)
(3)
(1)
(2)
(3)
(4)
(5)
(6)
Select the count clock with the TPSC2 to TPSC0 bits
in TCR. When the external clock (TCLK) is selected,
specify the external clock edge with the CKEG1 and
CKEG0 bits in TCR.
Specify whether an interrupt is to be generated on
TCNT underflow with the UNIE bit in TCR.
When the input capture function is used, set the ICPE
bits in TCR, including specification of whether the
interrupt function is to be used.
Set a value in TCOR.
Set the initial value inTCNT.
Set the STR bit to 1 in TSTR to start the count.

Related parts for r5s77631ay266bgv