This is a design of intelligent charger with battery capacity detection based on STC12C5AS2 single chip microcomputer. By connecting PC, users could set cut-off charge-discharge voltage and current directly to get monitor the no-man. It realized to judge limiting voltage and current automatically and has intelligent floating and trickle charge. The users could see voltage curve, current curve, percent of charge, capacity both charge and discharge respects. Here, we introduced partly, including simply circuit design and offered our photo both circuit and real device. We focus to detail program design of PC end in the paper. We used double buffer technique to solve flicker phenomenon. Meanwhile, when we designed and performed repeatedly, we found another good ways to save CPU and reduce volume of calculation. That is that we created another two container to save calculated data so to plot more fast when grid is in unchanged.