PWM Output

Have you set the pins to be an output before using them?
It sounds like you have not if you are only getting a 2.7V peak output. On the other hand have you measured the +5V with your scope to see if it is calibrated.
The other thing is that you could have too much of a load, like an LED without a current limiting resistor.