Connect up to 20 DS1820 to Mega16 on the same pin. Output temp(s). at serialport.:
01: 100008001EDF2110 23.0 C
00: 290008001EE05C10 22.9 C
The low level routine is written for 1MHz Int RC
This is the tempm example from owpd300b2\apps\temp, ported to AVR.(slightly modified)
which can be found at : http://www.ibutton.com/software/...
AVR: Connect a pullup resistor 1K between Vcc and DQ-pin. (portA.7)
DS1820's: Connect Vcc to Gnd. (Parasitic power mode) and DQ to AVR