tested with oscilloscope