Xbee API communication error


I am using arduino Uno with xbee S2 in API mode to transmit sensor data. I have an interrupt in sensor code to interrupt at every 2ms. When I comment the interrupt code the coordinator and receiver are working fine, But when I include interrupt code in the receiver section the xbee fails to transmit data. Any help is appreciated.