Sorry, I meant a varying duty cycle not a varying frequency. I see why letting the chip use a program to act as a DAC could be problematic as well. My initial attempts at an algorithm yield a signal that looks like this:

My question is, considering that analogWrite operates using PWM, what would be the highest frequency of signal I could transmit with a DAC?