English
Language : 

GMS84512 Datasheet, PDF (62/123 Pages) Hynix Semiconductor – 8-BIT SINGLE CHIP MICROCOMPUTER
GMS 84512 / 84524
3.6.6 The Control of 7-bit PWM
¨ç Write 7-bit data to each PWM data register (PWMR0~PWMR7).
¨èDefine output polarity by POL2 (bit3 of PWMCR2(PWM control register2))
Positive polarity is determine by default. also this has effect an all 7bit PWM output
¨é If each PWM port is selected by setting EN0~EN7(bit2~bit7 of PWMCR1, bit1 and bit2 ofPWMCR2) to
"1".
¨ê If CNTB(bit0 of PWMCR1) is "0", counter is operating, on the contrary if it is “1” counter stops. This
has effect on all 14-bit PWM/7-bit PWM counter.
PWM CONTROL REGISTER 1
PWMCR1
<00E4H>
R/W
7
R/W
6
R/W
5
R/W
4
R/W
3
R/W
2
R/W
1
R/W
0
EN5 EN4 EN3 EN2 EN1 EN0 EN8 CNTB
Initial Value (at RESET)
[ 0000 0000 ]
Select R40/ PWM5
0 : R40
1 : PWM5
Select R41/ PWM4
0 : R41
1 : PWM4
R42/ PWM3
0 : R42
1 : PWM3
Select R43/ PWM
2 0 : R43
1 : PWM2
Select R44/ PWM1
0 : R44
1 : PWM1
14-bit / 8-bit PWM Count Stop/Start
COUNT Start
1:
COUNT Stop
Stop/StartR32/
PWM8 0 : R32
1 : PWM8
R45/ PWM0 0 : R45
1 : PWM0
PWM CONTROL REGISTER 2
PWMCR2
<00E5H>
¦¡
¦¡
¦¡ R/W R/W R/W R/W R/W
7
6
5
4
3
2
1
0
¦¡ ¦¡ ¦¡ T2048 POL2 POL1 EN7 EN6
Initial Value (at RESET)
[ ---0 0000 ]
Start R25/ T2048
0 : R25
1 :T2048 (Period 2048 §Á rectangular pulse output select)
7-bit PWM OUTPUT Polarity
0 : Positive PolarityY
1 : Negative Polarity
Select R37/ PWM6
0 : R37
1 : PWM6
Select R36/ PWM7
0 : R36
1 : PWM7
14-bit PWM Output Polartity
0 : Positive Polarity
1 : Negative Polarity
3 - 37