How can I change the amplitude of a pwm signal ?

Need external components if you want something besides 0-5V output.
See page 16 of datasheet

Vref is multiplied by the value shifted into the DAC.
Higher resolutions also available, here are 12-bit examples