本文主要从单片机软件实现角度介绍一种公历到农历转换的算法思想, 算法采用MCS-51 指令系统实现。并给出程序流程图,另外对二十四节气和生肖的算法也做详细介绍。 关键词:单片机;MCS-51 指令系统 Abstract: This paper introduces the realization and algorithm of the transform between Gregorian calendar and lunar calendar based on the single chip microcomputer. The algorithm adopt MCS-51 instruction repertoire. The main program flow chart is given. Also the algorithms about twenty-four solar terms and twelve animal year names are described in detail. Key words: single chip microcomputer; MCS-51 instruction repertoire