Provided is a highly safe battery device in which the accuracy of an overcurrent detection current value is high. A charge and discharge control circuit includes an overcurrent detecting terminal, an overcurrent detecting circuit for detecting overcurrent of a secondary battery, the overcurrent detecting circuit being connected to the overcurrent detecting terminal, and a constant current circuit for causing a current to flow to the overcurrent detecting terminal.