40 Hz Square wave with 8kHz tone

“This function works very accurately in the range 3 microseconds and up to 16383.”