Generating 40kHz square wave

The full doc gives all the registers and commands, 55 pages of answers for those who ain'ts gots:

BTW that's in thanks to your code in reply #7 Nick.