A dying, fading car battery means low voltage. As a result, your car's computer, which is responsible for reporting error codes, is also receiving low voltage. An error code will be generated which will in turn trigger the Check Engine Light or even the Battery Charge Warning Light to display.