Pwmx (D/A) Data Registers A And B (Dadra And Dadrb) - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

9.3.2

PWMX (D/A) Data Registers A and B (DADRA and DADRB)

DADRA corresponds to PWMX (D/A) channel A, and DADRB to PWMX (D/A) channel B.
DADR cannot be accessed in 8-bit units. DADR should always be accessed in 16-bit units. For
details, see section 9.4, Bus Master Interface.
• DADRA
Bit
Bit Name
Initial Value
15
DA13
1
14
DA12
1
13
DA11
1
12
DA10
1
11
DA9
1
10
DA8
1
9
DA7
1
8
DA6
1
7
DA5
1
6
DA4
1
5
DA3
1
4
DA2
1
3
DA1
1
2
DA0
1
1
CFS
1
0
1
Rev. 1.00, 09/03, page 228 of 704
R/W
Description
R/W
D/A Data 13 to 0
R/W
Set a digital value to be converted to an analog value.
R/W
In each base cycle, the DACNT value is continually
R/W
compared with the DADR value to determine the duty
R/W
cycle of the output waveform, and to decide whether to
R/W
output a fine-adjustment pulse equal in width to the
R/W
resolution. To enable this operation, this register must
R/W
be set within a range that depends on the CFS bit. If the
R/W
DADR value is outside this range, the PWM output is
R/W
fixed.
R/W
R/W
A channel can be operated with 12-bit accuracy by
R/W
fixing DA0 and DA1 to 0. The lower two data bits are
R/W
not compared with UC12 and UC13 in DACNT.
R/W
Carrier Frequency Select
0: Base cycle = resolution (T) × 64
The range of DA13 to DA0: H'0100 to H'3FFF
1: Base cycle = resolution (T) × 256
The range of DA13 to DA0: H'0040 to H'3FFF
R/W
Reserved
This bit is always read as 1 and cannot be modified.

Advertisement

Table of Contents
loading

Table of Contents