Design of Intelligent Charger Based on Single Chip Microcomputer