modulate function test

~38 kHz modulate function for 31 kHz clock, testing