51 assembly measurement pulse width and period