Hi Acetronics,
I think you are wrong because my signal is 50hz.I am using 20ms periodic pulses,if t=100 then 1ms high and 19ms low.if the period 20ms then frequency will be 50hz from the formula f=(1/T)
here is my signal code

PULSOUT PORTC.2,T
PAUSEUS 20000-(T*10)

where am I wrong?