upd70f3017ay Renesas Electronics Corporation., upd70f3017ay Datasheet - Page 197

no-image

upd70f3017ay

Manufacturer Part Number
upd70f3017ay
Description
V850/sa1tm 32-/16-bit Single-chip Microcontroller
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
upd70f3017ayGC-8EU-A
Manufacturer:
MICROCHIP
Quantity:
1 001
7.4 8-Bit Timer Operation
7.4.1 Operation as interval timer (8-bit operation)
Setting method
Basic operation
Remarks 1. Interval time = (N + 1) × t; N = 00H to FFH
The timer operates as an interval timer that repeatedly generates interrupts at the interval of the count preset by
8-bit compare register n (CRn0).
If the count in 8-bit counter n (TMn) matches the value set in CRn0, the value of TMn is cleared to 0 and
continues counting. At the same time, an interrupt request signal (INTTMn) is generated.
The TMn count clock can be selected by bits 0 to 2 (TCLn0 to TCLn2) of timer clock select register n (TCLn) and
by bit 0 (TCLn3) of timer clock select register n1 (TCLn1) (n = 2 to 5).
(1) Set each register.
(2) When TCEn = 1 is set, counting starts.
(3) When the values of TMn and CRn0 match, INTTMn is generated (TMn is cleared to 00H).
(4) Then, INTTMn is repeatedly generated at the same interval. When counting stops, set TCEn = 0.
INTTMn
• TCLn, TCLn1:
• CRn0:
• TMCn:
CRn0
TCEn
2. n = 2 to 5
TOn
00H
t
Count start
Interval time
N
01H
Figure 7-30. Timing of Interval Timer Operation (1/3)
Select the count clock.
Compare value
Selects the clear and start mode when TMn and CRn0 match.
(TMCn = 0000xxx0B, x is don’t care)
CHAPTER 7
N
Clear
Interrupt acknowledgement
User’s Manual U12768EJ4V1UD
00H
N
TIMER/COUNTER FUNCTION
Interval time
01H
N
Clear
00H
Interrupt
acknowledgement
N
Interval time
01H
N
N
197

Related parts for upd70f3017ay