added debug option to log SCI pulses