MG87FE/L2051/4051/6051
Preliminary, v 1.03
MAKE YOU WIN
10.2.2. PWM-Timer Register
CMOD: PWM-timer Mode Register
Address=D9H, read/write, Power On + RESET=0000-0000
7
6
5
4
3
2
1
0
CIDL
POS2
POS1
POS0
CPS2
CPS1
CPS0
ECF
Bit 7: CIDL, Counter Idle Control.
0: Program the PWM-Timer to continue functioning during IDLE mode.
1: Program the PWM-Timer to be gated off during IDLE mode.
Bit 6~4: POS[2:0], PWM output port select.
POS[2:0]
PWMEN
PWM Output Port
P1.0
0
0
0
0
1
1
1
1
X
0
0
1
1
0
0
1
1
X
0
1
0
1
0
1
0
1
X
1
1
1
1
1
1
1
1
0
P1.1
P1.2
P1.3
P1.4
P1.5
P1.6
P1.7
Disabled
Bit 3~1: CPS[2:0], Counter Pre-scalar Select.
CPS[2:0] Pre-scalar
0
0
0
0
1
1
1
1
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
1
2
4
8
16
32
64
128
Bit 0: ECF, Enable PWM-Timer underflow interrupt.
0: Disables CF bit in CCON to generate an interrupt.
1: Enables CF bit in CCON to generate an interrupt.
This document information is the intellectual property of Megawin Technology.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
QP-7300-03D
28/56