Updated recieve code with a pulse width based on start code.