another thing you may want to check is that the port pin you are using is definately set to low before you run the pulsout command. the pulsout only toggles the port twice, so if the port pins initial state is high, it will pulse the pin low for your desired time. I had a bit of trouble with this once, it took me ages to work out why it was working properly.