Pulsout really toggles the output. So if it was at '1' it makes it '0' and then '1' again.

Thats why Alain made sure port B was reset in the first place.

Besides the exact timing of the Subroutine version of the program, they should perform the same.

Many ways to do the same thing.

Ioannis