HD6417706 RENESAS [Renesas Technology Corp], HD6417706 Datasheet - Page 365

no-image

HD6417706

Manufacturer Part Number
HD6417706
Description
Renesas 32-Bit RISC Microcomputer Super RISC engine Family/SH7700 Series
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
HD6417706
Manufacturer:
TDK
Quantity:
500
Part Number:
HD6417706
Manufacturer:
TOSH
Quantity:
1 000
Part Number:
HD6417706-SH3-133V
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
HD6417706BP133
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
HD6417706BP133V
Manufacturer:
HITACHI/日立
Quantity:
20 000
Part Number:
HD6417706F120DV
Manufacturer:
HITACHI
Quantity:
96
Part Number:
HD6417706F120DV
Manufacturer:
RENESAS/PBF
Quantity:
375
Part Number:
HD6417706F120DV
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
HD6417706F133
Manufacturer:
RENESAS/瑞萨
Quantity:
20 000
Part Number:
HD6417706F133V
Manufacturer:
EDISON
Quantity:
2 000
Part Number:
HD6417706F133V
Manufacturer:
Renesas Electronics America
Quantity:
10 000
Company:
Part Number:
HD6417706F133V
Quantity:
27
12.4
Each of three channels has a 32-bit timer counter (TCNT_0 to TCNT_2) and a 32-bit timer
constant register (TCOR_0 to TCOR_2). The TCNT counts down. The auto-reload function
enables synchronized counting and counting by external events. Channel 2 has an input capture
function.
12.4.1
When the STR0 to STR2 bits in TSTR are set to 1, the corresponding timer counter (TCNT) starts
counting. When a TCNT underflows, the UNF flag of the corresponding timer control register
(TCR) is set. At this time, if the UNIE bit in TCR is 1, an interrupt request is sent to the CPU.
Also at this time, the value is copied from TCOR to TCNT and the down-count operation is
continued.
The count operation is shown in figure 12.2.
Note:
An example of the count operation setting flow
interrupt generation
Set timer constant
Select operation
Select counter
Set underflow
Initialize timer
Start counting
Operation
Counter Operation
When an interrupt has been generated, clear the flag in the interrupt handler that caused it.
If interrupts are enabled without clearing the flag, another interrupt will be generated.
register
counter
clock
Figure 12.2 Setting the Count Operation
Set interrupt
(1)
(2)
generation
(4)
(5)
(6)
When using input
capture function
(3)
(1)
(2)
(3)
(4)
(5)
(6)
Select the counter clock with the TPSC0-TPSC2
bits in the timer control register. If the external
clock is selected, set the TCLK pin to input mode
with the TOCE bit in TOCR, and select its edge
with the CKEG1 and CKEG0 bits in the timer
control register.
Use the UNIE bit in the timer control register to set
whether to generate an interrupt when timer
counter underflows.
When using the input capture function, set the
ICPE bits in the timer control register, including
the choice of whether or not to use the interrupt
function (channel 2 only).
Set a value in the timer constant register
(the cycle is the set value plus 1).
Set the initial value in the timer counter.
Set the STR bit in the timer start register to 1 to
start operation.
Rev. 4.00, 03/04, page 319 of 660

Related parts for HD6417706