Register Descriptions; Pwm D/A Counter (Dacnt) - Renesas H8S/2633 Series Hardware Manual

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

Advertisement

14.2

Register Descriptions

14.2.1

PWM D/A Counter (DACNT)

15
Bit (CPU)
:
7
BIT (Counter)
Initial value
:
0
R/W
:
R/W
DACNT is a 14-bit readable/writable up-counter that increments on an input clock pulse. The
input clock is selected by the clock select bit (CKS) in DACR. The CPU can read and write the
DACNT value, but since DACNT is a 16-bit register, data transfers between it and the CPU are
performed using a temporary register (TEMP). See section 14.3, Bus Master Interface, for details.
DACNT functions as the time base for both PWM D/A channels. When a channel operates with
14-bit precision, it uses all DACNT bits. When a channel operates with 12-bit precision, it uses the
lower 12 (counter) bits and ignores the upper two (counter) bits.
DACNT is initialized to H'0003 by a reset, in the standby modes, watch mode, subactive mode,
subsleep mode, and module stop mode, and by the PWME bit.
Bit 1 of DACNTL (CPU) is not used, and is always read as 1.
DACNTL Bit 0—Register Select (REGS): DADRA and DACR, and DADRB and DACNT, are
located at the same addresses. The REGS bit specifies which registers can be accessed. The REGS
bit can be accessed regardless of whether DADRB or DACNT is selected.
Bit 0
REGS
Description
0
DADRA and DADRB can be accessed
1
DACR and DACNT can be accessed
658
DACNTH
14
13
12
11
10
6
5
4
3
2
0
0
0
0
0
R/W
R/W
R/W
R/W
R/W
9
8
7
6
1
0
8
9
10
0
0
0
0
R/W
R/W
R/W
R/W
R/W
DACNTL
5
4
3
2
1
11
12
13
0
0
0
0
1
R/W
R/W
R/W
(Initial value)
0
REGS
1
R/W

Advertisement

Table of Contents
loading

Table of Contents