HC-04 interface with nRF51422

Dear Nordic Team,

Thanks for supporting.

Anybody work with ultrasonic sensor (HC-04). Please guide me. I am just interface with arduino example its working good. It have built in function for "pulseIn". I dont know how to make this function in nRF51422 keil version. Please support.