Pwm Register Select (Pwsl) - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

8.3.1

PWM Register Select (PWSL)

PWSL is used to select the input clock and the PWM data register.
Bit
Bit Name
Initial Value
7
PWCKE
0
6
PWCKS
0
5
1
4
0
3
RS3
0
2
RS2
0
1
RS1
0
0
RS0
0
[Legend]
x:
Don't care.
R/W
Description
R/W
PWM Clock Enable
PWM Clock Select
R/W
These bits, together with bits PWCKC, PWCKB and
PWCKA in PCSR, select the internal clock input to
TCNT in the PWM. For details, see table 8.2.
The resolution, PWM conversion period, and carrier
frequency depend on the selected internal clock, and
can be obtained from the following equations.
Resolution (minimum pulse width) = 1/internal clock
frequency
PWM conversion period = resolution × 256
Carrier frequency = 16/PWM conversion period
With a 10 MHz system clock (φ), the resolution, PWM
conversion period, and carrier frequency are as shown
in table 8.3.
R
Reserved
Always read as 1 and cannot be modified.
R
Reserved
Always read as 0 and cannot be modified.
R/W
Register Select
R/W
These bits select the PWM data register.
R/W
0000: PWDR0 selected
R/W
0001: PWDR1 selected
0010: PWDR2 selected
0011: PWDR3 selected
0100: PWDR4 selected
0101: PWDR5 selected
0110: PWDR6 selected
0111: PWDR7 selected
1xxx: No effect on operation
Rev. 1.00, 05/04, page 149 of 544

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents