介绍了单总线测温器件DS18B20及其与ATmega8 单片机共同组成单总线测温系统的接口方法,并给出了其核心的μS级软件延时的C语言源程序和对DS18B20进行操作的程序框图,以及利用C语言实现接口软件的方法以及使用时的技巧和需要注意的一些问题。 关键词: 单总线; 单片机; 嵌入式C Abstract: The realizing method of systemic interface within 1-wire temperature sensor DS18B20 and ATmega8 MCU have been introduced, the key point of source program delayed by μs grade programmed in embedding C language and operating diagram for DS18B20 has been given in this text. Some skills and problems needed to pay attention to while making use of C language to realize the method of the systemic interface software has been introduced also. Keywords:1-wire system, MCU, embedding C