Download Print this page

Hitachi H8S/2633 Hardware Manual page 570

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
550
DACNTH
14
13
12
11
6
5
4
3
0
0
0
0
R/W
R/W
R/W
R/W
10
9
8
7
2
1
0
8
0
0
0
0
R/W
R/W
R/W
R/W
DACNTL
6
5
4
3
9
10
11
12
0
0
0
0
R/W
R/W
R/W
R/W
2
1
0
13
REGS
0
1
1
R/W
R/W
(Initial value)

Advertisement

loading

This manual is also suitable for:

Hd6432633Hd6432631Hd64f2633H8s/2632Hd6432632H8s/2631