Text this: Measuring and testing with square-wave signals