What MarkT said, as well as:
How are you measuring your voltage? If you are using a DVM, it will take the DC average of your signal, which the DC average of a a square wave is the duty cycle * amplitude. You'll want to check using an oscilloscope if possible.