The pulseIn() function is certainly not going to work - it is slow.
Post the program you tried with Port Manipulation.
...R