Pwm Output Unit Control Registers; Pwm Control Register (Pwmc) - NEC uPD784038 Series User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

13.2 PWM OUTPUT UNIT CONTROL REGISTERS

13.2.1 PWM Control Register (PWMC)

The PWMC is an 8-bit register that controls the operating status of the PWM output pins (PWMn: n = 0, 1).
The PWMC can be read or written to with an 8-bit manipulation instruction or bit manipulation instruction. Its format
is shown in Figure 13-2.
When RESET is input, PWMC is set to 05H, the PWMn pin is set to port mode, and the input state (output high impedance)
is set.
7
6
PWMC
SYN1
0
SYN0
CHAPTER 13 PWM OUTPUT UNIT
Figure 13-2 PWM Control Register (PWMC) Format
5
4
3
2
0
EN1
ALV1
User's Manual U11316EJ4V1UD
1
0
Address
After Reset
EN0
ALV0
0FF70H
ALVn
PWMn Pin PWM Active Level Specification
0
Active-low
1
Active-high
ENn
PWMn Pin PWM Output Control
Output disabled. The pin level is determined
by the contents of th PM1, P1 and PU0
0
(port mode).
PWM output enabled
1
PWM Pulse Width Rewrite Cycle
SYNn
0
Rewritten every 16 PWM cycles (2
1
Rewritten every PWM cycle (2
R/W
05H
R/W
(n = 0, 1)
Specification
12
/f
PWMC
8
/f
)
PWMC
)
379

Advertisement

Table of Contents
loading

Table of Contents