Software configurable CAN bus termination circuit with memory