10 bits means the cycle is divided into 1024 time slots. Writing 0 means none of them have the waveform high. Writing 1023 means 1023 of those 1024 have the waveform high.

The analogWrite()...