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 controls the charge provided to a battery back by a variable current source. An intelligent control scheme based on a neural network fuzzy logic methodology is used to optimize the charging current in response to measured characteristics of the battery.