How can I use PWM??

shery
hello everyone.


I want to control motor by TOUT1(GPB1pin).
I checked s3c2440'sDatasheet.
so How should Setup these Register

TCFG0  (0x51000000)
TCFG1  (0x51000004)
TCON   (0x51000008)
TCNTB1 (0x51000018)
TCMPB1 (0x5100001C)

GPBCON (0x56000008)



These are my Idea.

[Register] [value]        [comment]

TCFG0       0x1        (prescaler0 value=1)
TCFG1       0x0        (diviver value=2)
TCON        0x500300   (Timer 1 start,Update TCNTB1&TCMPB1)
TCNTB1      0x3e8      (frequency =1000)
TCMPB1      0x50       (PWMvalue=50)
GPBCON      0x8        (GPBCON1=TOUT1)


I tried this Conditions.
But GPB1 didnt work. 
please help me.