MHz Speed Analog Reading + High Quality 40kHz Square Wave

Whoops, just a mistype there supremo--I meant a 40kHz square wave--like in the diagram. I can't believe I missed that in the title.