Just curious, is there a simple efficient way to add on a 9V battery powered project ,feeding a LP2950ACZ-5.0 regulator (5V) with a 16F628A, processor some kind of protection that when the battery goes down to about 6.2V it will not provide power to the regulator?

Thanks for any suggestions.