A method and apparatus for providing fast charging of secondary cells in an electronic device. The charging process is under the control of a microcontroller which contains a read-only-memory (ROM) in which is embedded code which determines the charging method. The charge method cont