Arduino uno giving weird analogWrite output

I want to know is how to actually get 1024 out of the led. not 255

Do some reading on the TimerOne library.