Sounds about right.I also think instead of doing:
movlw 1 ;
movwf outofrange ; out of range detected
in the distance routine, i can just set a flag for the 'bin16_BDC5' so that it first check if there out of range before doing the conversion....
am I correct???
regards,
A possible improvement would be to lookup the 3 segments to send (and store them in variables) after the conversion instead of in the ISR. That way it is easy to put something to display for over and under in those variables and the interrupt will just display them. You could put something like "ovr" and "und"