Abstract: in the infrared remote electronic locks for the enhancement of security awareness and anti-theft device are increasingly demanding today more and more wide application. Compared with the use of mechanical lock, safety, the electronic locks and the poor have high safety coefficient, infrared remote control device, small volume, low power consumption, the function is strong, low cost and good flexibility, etc. Infrared remote controller is the core part of electronic locks, electronic lock actuator controls. Relative to other SCM, STC89C52 EEPROM memory chips in bringing watchdog, and double pointer, make written data is stored for 100 years and overcome the mechanical quantity password locks the disadvantages. Based on SCM design realize a STC9C52 infrared remote electronic locks controller, paper describes the whole framework, and controller design for each module detailed hardware circuit and software program, and finally debugging, the experiment results are : STC89C52, electronic locks, infrared remote, prevent fire function