i am working with ultrasonic sensor and LCD in pic16f1847 .I am using interrupt for distance measurement. LCD and sensor both are working but my problem is variation of distance is not linear in LCD....i think made mistake in distance calculation...pls anybody guide me...........