Pwm D/A Data Registers A And B (Dadra And Dadrb) - Renesas H8S/2633 Series Hardware Manual

Hide thumbs Also See for H8S/2633 Series:
Table of Contents

Advertisement

14.2.2

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

15
Bit (CPU)
13
Bit (Data)
DA13
DA12
DADRA
1
Initial value :
R/W
R/W
:
DADRB
DA13
Initial value :
1
R/W
:
R/W
There are two 16-bit readable/writable PWM D/A data registers: DADRA and DADRB. DADRA
corresponds to PWM D/A channel A, and DADRB to PWM D/A channel B. The CPU can read
and write the PWM D/A data register values, but since DADRA and DADRB are 16-bit registers,
data transfers between them and the CPU are performed using a temporary register (TEMP). See
section 14.3, Bus Master Interface, for details.
The least significant (CPU) bit of DADRA is not used and is always read as 1.
DADR is initialized to H'FFFF by a reset, and in the standby modes, watch mode, subactive mode,
subsleep mode, and module stop mode.
Bits 15 to 3—PWM D/A Data 13 to 0 (DA13 to DA0): The digital value to be converted to an
analog value is set in the upper 14 bits of the PWM D/A data register.
In each base cycle, the DACNT value is continually compared with these upper 14 bits to
determine the duty cycle of the output waveform, and to decide whether to output a fine-
adjustment pulse equal in width to the resolution. To enable this operation, the data register must
be set within a range that depends on the carrier frequency select bit (CFS). If the DADR value is
outside this range, the PWM output is held constant.
A channel can be operated with 12-bit precision by keeping the two lowest data bits (DA0 and
DA1) cleared to 0 and writing the data to be converted in the upper 12 bits. The two lowest data
bits correspond to the two highest counter (DACNT) bits.
DADRH
14
13
12
11
10
12
11
10
9
DA11
DA10
DA9
DA8
1
1
1
1
R/W
R/W
R/W
R/W
R/W
DA12
DA11
DA10
DA9
DA8
1
1
1
1
R/W
R/W
R/W
R/W
R/W
9
8
7
6
8
7
6
5
4
DA7
DA6
DA5
DA4
1
1
1
1
1
R/W
R/W
R/W
R/W
DA7
DA6
DA5
DA4
1
1
1
1
1
R/W
R/W
R/W
R/W
DADRL
5
4
3
2
1
3
2
1
0
DA3
DA2
DA1
DA0
CFS
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
DA3
DA2
DA1
DA0
CFS
1
1
1
1
1
R/W
R/W
R/W
R/W
R/W
0
1
REGS
1
R/W
659

Advertisement

Table of Contents
loading

Table of Contents