Based on the logic table for AND gates, i should be able to use either as a simple digital switch. That is, say input 1 is running at 40khz, and input 2 is 1 Hz. Then, every second, our output should toggle between 0 for half a second, then 40kHz for half a second. Correct? **broken link removed**
Note, since the logic is AND, when either input is off, the output is off. And as expected, when the 1 Hz is on, the output will switch on and off at 40 kHz. That is what you are seeing (I suspect), if you zoom in on your time scale.
Note, since the logic is AND, when either input is off, the output is off. And as expected, when the 1 Hz is on, the output will switch on and off at 40 kHz. That is what you are seeing (I suspect), if you zoom in on your time scale.