Pwm Output Control Registers 1 And 2 (Pwocr1, Pwocr2) - Hitachi H8S/2646 Hardware Manual

Hitachi 16-bit single-chip microcomputer h8s/2646 series
Table of Contents

Advertisement

Bit 3—Counter Start (CST): Bit 3 selects starting or stopping of the PWCNT counter for the
corresponding channel.
Bit 3: CST
Description
0
PWCNT is stopped
1
PWCNT is started
Bits 2 to 0—Clock Select (CKS): Bits 2 to 0 select the clock for the PWCNT counter in the
corresponding channel.
Bit 2: CKS2
Bit 1: CKS1
0
0
1
1
*
17.2.2

PWM Output Control Registers 1 and 2 (PWOCR1, PWOCR2)

PWOCR1
Bit
7
OE1H
Initial value
0
Read/Write
R/W
PWOCR2
Bit
7
OE2H
Initial value
0
Read/Write
R/W
PWOCR is an 8-bit read/write register that enables or disables PWM output. PWOCR1 controls
outputs PWM1H to PWM1A, and PWOCR2 controls outputs PWM2H to PWM2A.
PWOCR is initialized to H'00 upon reset, and in standby mode, watch mode, subactive mode,
subsleep mode, and module stop mode.
Bit 0: CKS0
0
1
0
1
*
6
5
OE1G
OE1F
OE1E
0
0
R/W
R/W
6
5
OE2G
OE2F
OE2E
0
0
R/W
R/W
Description
Internal clock: counts on ø/1
Internal clock: counts on ø/2
Internal clock: counts on ø/4
Internal clock: counts on ø/8
Internal clock: counts on ø/16
4
3
OE1D
OE1C
0
0
R/W
R/W
R/W
4
3
OE2D
OE2C
0
0
R/W
R/W
R/W
(Initial value)
(Initial value)
*: Don't care
2
1
0
OE1B
OE1A
0
0
0
R/W
R/W
2
1
0
OE2B
OE2A
0
0
0
R/W
R/W
617

Advertisement

Table of Contents
loading

Table of Contents