The invention discloses a universal remote controller which can learn programming and its control method, including a button matrix, a mobile and erasable external memory, a memory connector, an infrared codes circuit, a micro-controller which connects with the above pieces, and et al. The memory is a kind of card, which links the remote controller in the mobile way, has a bus interface with the micro-controller, and can link PC by USB interface or the SCM with serial ports directly. First the remote control code of the electrical equipment is stored in the memory card, then the control signals according to control orders from the micro-controller corresponding are transmitted to the above equipment. The remote control equipment is highly integrated and economical with the card separation pattern of similar cell phone and its own learning function through communication between the memory and computer or Internet, which operation is simple and reliable, to be a truly intelligent remote controller.