Working version of multi-pin ttl pulse