Patent attributes
The present disclosure provides an adapter and a charging control method. The adapter includes: a power converter, configured to convert input alternating current to obtain an output voltage and an output current of the adapter, the output current of the adapter being a current with a first pulsating waveform; a sampling and holding unit, coupled to the power converter, and configured to sample the current with the first pulsating waveform in a sampling state, and to hold a peak value of the current with the first pulsating waveform in a holding state; a current sampling controller, coupled to the sampling and holding unit, and configured to determine whether the sampling and holding unit is in the holding state, and to sample the peak value of the current with the first pulsating waveform held by the sampling and holding unit when the sampling and holding unit is in the holding state.