C51:how to write asm code for PWM speaker?

i am a noob and learning 8051 coding.
i want to know how can i use PWM to write a speaker which can emit diff sound (do,re,mi,etc.) by using 2 pins only.
thanks.

More questions in this forum