UPD78F0838 Renesas Electronics Corporation., UPD78F0838 Datasheet - Page 327

no-image

UPD78F0838

Manufacturer Part Number
UPD78F0838
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
(1) PWM output basic operation
<1> Set each register.
<2> The count operation starts when TCE5n = 1.
<1> PWM output (output from TIO5n) outputs an inactive level until an overflow occurs.
<2> When an overflow occurs, the active level is output. The active level is output until CR5n matches the
<3> After the CR5n matches the count value, the inactive level is output until an overflow occurs again.
<4> Operations <2> and <3> are repeated until the count operation stops.
<5> When the count operation is stopped with TCE5n = 0, PWM output becomes inactive.
Setting
PWM output operation
Note 8-bit timer/event counter 50: P02, PM02
Remark n = 0, 1
Clear TCE5n to 0 to stop the count operation.
count value of 8-bit timer counter 5n (TM5n).
For details of timing, see Figures 7-13 and 7-14.
The cycle, active-level width, and duty are as follows.
Clear the port output latch (P02 or P03)
TCL5n: Select the count clock.
CR5n:
TMC5n: Stop the count operation, select PWM mode.
8-bit timer/event counter 51: P03, PM03
(N = 00H to FFH)
Cycle = 2
Active-level width = Nt
Duty = N/2
Compare value
The timer output F/F is not changed.
8
t
Timer output enabled
(TMC5n = 01000001B or 01000011B)
8
TMC5n1
CHAPTER 7 8-BIT TIMER/EVENT COUNTERS 50 AND 51
0
1
Active-high
Active-low
Preliminary User’s Manual U19748EJ1V0UD
Note
Active Level Selection
and port mode register (PM02 or PM03)
Note
to 0.
325

Related parts for UPD78F0838