Read my earlier post again. I already showed you exactly how to write to those registers, and the values you need for 40KHz.

Just make sure that those are the identical register names.