A cardiac pacemaker device comprising: an atrium detection amplifier circuit for detecting and amplifying an electrocardiogram of an atrium; a chamber detection amplifier circuit for detecting and amplifying an electrocardiogram of a chamber; a controller circuit into which amplification signals of the atrium detection amplifier circuit and the chamber detection amplifier circuit are input to measure the electrocardiograms and calculate a pulse cycle, the controller circuit adapted to output a heart stimulation signal when an irregular heart beat is detected; a pulse generation circuit for outputting an electric pulse which stimulates a heart when the heart stimulus pulse signal is input from the controller circuit; a battery (107, 604, 704) for supplying an electric power to the atrium detection amplifier circuit, the chamber detection amplifier circuit, the controller circuit, and the pulse generation circuit; an internal antenna (111, 603, 703) for receiving a wireless signal transmitted from an external device; a rectifying and smoothing circuit converting the wireless signal received by the internal antenna (111, 603, 703) into direct current; a charge circuit for generating current based on an electric power of the rectifying and smoothing circuit and charging the battery (107, 604, 704); a charge control circuit for monitoring the battery (107, 604, 704) so as not to be charged too much, and for controlling the charge circuit and suppressing charging of the battery when the battery is overcharged; a residual amount detection circuit for monitoring a voltage of the battery (107, 604, 704) and converting the voltage into a digital signal; and a modulation circuit connected to the residual amount detection circuit and configured to modulate the wireless signal with the digital signal over the internal antenna, such that the voltage of the battery can be externally monitored by monitoring the modulated signal; wherein the battery is a thin film secondary cell comprising: a substrate; a collector thin film to be an electrode formed over the substrate; an anode active material layer formed over the collector thin film, wherein the collector thin film has favorable adhesiveness to the anode active material layer; a solid electrolyte layer formed over the anode active material layer; a cathode active material layer formed over the solid electrolyte layer; a further collector thin film to be an electrode formed over the cathode active material layer and having favorable adhesiveness to the cathode active material layer. an atrium detection amplifier circuit for detecting and amplifying an electrocardiogram of an atrium; a chamber detection amplifier circuit for detecting and amplifying an electrocardiogram of a chamber; a controller circuit into which amplification signals of the atrium detection amplifier circuit and the chamber detection amplifier circuit are input to measure the electrocardiograms and calculate a pulse cycle, the controller circuit adapted to output a heart stimulation signal when an irregular heart beat is detected; a pulse generation circuit for outputting an electric pulse which stimulates a heart when the heart stimulus pulse signal is input from the controller circuit; a battery (107, 604, 704) for supplying an electric power to the atrium detection amplifier circuit, the chamber detection amplifier circuit, the controller circuit, and the pulse generation circuit; an internal antenna (111, 603, 703) for receiving a wireless signal transmitted from an external device; a rectifying and smoothing circuit converting the wireless signal received by the internal antenna (111, 603, 703) into direct current; a charge circuit for generating current based on an electric power of the rectifying and smoothing circuit and charging the battery (107, 604, 704); a charge control circuit for monitoring the battery (107, 604, 704) so as not to be charged too much, and for controlling the charge circuit and suppressing charging of the battery when the battery is overcharged; a residual amount detection circuit for monitoring a voltage of the battery (107, 604, 704) and converting the voltage into a digital signal; and a modulation circuit connected to the residual amount detection circuit and configured to modulate the wireless signal with the digital signal over the internal antenna, such that the voltage of the battery can be externally monitored by monitoring the modulated signal; wherein the battery is a thin film secondary cell comprising: a substrate; a collector thin film to be an electrode formed over the substrate; an anode active material layer formed over the collector thin film, wherein the collector thin film has favorable adhesiveness to the anode active material layer; a solid electrolyte layer formed over the anode active material layer; a cathode active material layer formed over the solid electrolyte layer; a further collector thin film to be an electrode formed over the cathode active material layer and having favorable adhesiveness to the cathode active material layer. a substrate; a collector thin film to be an electrode formed over the substrate; an anode active material layer formed over the collector thin film, wherein the collector thin film has favorable adhesiveness to the anode active material layer; a solid electrolyte layer formed over the anode active material layer; a cathode active material layer formed over the solid electrolyte layer; a further collector thin film to be an electrode formed over the cathode active material layer and having favorable adhesiveness to the cathode active material layer.