upd70f3017ay Renesas Electronics Corporation., upd70f3017ay Datasheet - Page 202

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.4 Operation as 8-bit PWM output
TMCn.
(TCLn3) of timer clock select register n1 (TCLn1).
(1) Basic operation of the PWM output
202
PWM output operation
Setting method
By setting bit 6 (TMCn6) of 8-bit timer mode control register n (TMCn) to 1, the timer operates as a PWM output.
Pulses with the duty factor determined by the value set to 8-bit compare register n (CRn0) are output from TOn.
Set the width of the active level of the PWM pulse to CRn0. The active level can be selected by bit 1 (TMCn1) of
The count clock can be selected by bits 0 to 2 (TCLn0 to TCLn2) of timer clock select register n (TCLn) and by bit 0
The PWM output can be enabled and disabled by bit 0 (TOEn) of TMCn.
Caution CRn0 can be rewritten only once in one cycle while in the PWM mode.
Remark
Remark
(1) Set the port latch and port mode register n to 0.
(2) Set the active level width in 8-bit compare register n (CRn0).
(3) Select the count clock using timer clock select register n, n1 (TCLn, TCLn1).
(4) Set the active level in bit 1 (TMCn1) of TMCn.
(5) If bit 7 (TCEn) of TMCn is set to 1, counting starts. When counting stops, set TCEn to 0.
(1) When counting starts, the PWM output (output from TOn) outputs the inactive level until an overflow
(2) When the overflow occurs, the active level specified in step (1) in the setting method is output. The active
(3) The PWM output after CRn0 and the count match is the inactive level until an overflow occurs again.
(4) Steps (2) and (3) repeat until counting stops.
(5) If counting is stopped by TCEn = 0, the PWM output goes to the inactive level.
occurs.
level is output until CRn0 and the count of 8-bit counter n (TMn) match.
n = 2 to 5
n = 2 to 5
CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U12768EJ4V1UD

Related parts for upd70f3017ay