2 Button to 1 PWM output

Look at the following diagram (Fig-1) and observe that the anaologWrite() function works on the described DPins execpt Dpin-8.

pwm328x
Figure-1: