upd70f3017ay Renesas Electronics Corporation., upd70f3017ay Datasheet - Page 201

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.3 Operation as square wave output (8-bit resolution)
the count preset in CRn0 as the interval. Therefore, a square wave output with any frequency (duty factor = 50%) is
possible.
Setting method
A square wave with any frequency is output at the interval preset by 8-bit compare register n (CRn0).
By setting bit 0 (TOEn) of 8-bit timer mode control register n (TMCn) to 1, the output state of TOn is inverted with
Note The initial value of the TOn output is set by bits 2 and 3 (LVRn, LVSn) of 8-bit timer mode control register n
Remarks
TMn count value
(1) Set the registers.
(2) When TCEn = 1 is set, the counter starts operating.
(3) If the values of TMn and CRn0 match, the timer output flip-flop inverts. Also, INTTMn is generated and
(4) Then, the timer output flip-flop is inverted at the same interval to output a square wave from TOn.
Count clock
(TMCn).
• Set the port latch and port mode register to 0
• TCLn, TCLn1:
• CRn0:
• TMCn:
TMn is cleared to 00H.
TOn
CRn0
1. Square-wave output frequency = 1/2t (N + 1)
2. n = 2 to 5
Note
Count start
00H
t
Inversion of timer output flip-flop enabled
Timer output enabled → TOEn = 1
Figure 7-32. Timing of Square Wave Output Operation
LVSn
01H
1
0
Select the count clock
Compare value
Clear and start mode entered when TMn and CRn0 match
02H
N
CHAPTER 7
LVRn
0
1
User’s Manual U12768EJ4V1UD
TIMER/COUNTER FUNCTION
N
High-level output
Low-level output
Setting State of Timer Output Flip-flop
1
N
00H
01H
02H
N
1
N
00H
201

Related parts for upd70f3017ay