one wire interface between ds 18s20 and atmega169

hello every one
i m new and i want to make a sencer with ds 18s20 and atmega169 but have problems while making one wire interface

any one know how to make one wire interface between ds 18s20 and atmega169

plz send main initial code for one wire interface

I have no idea about the 169 - but you can find code for the 1820 and the onewire protocol in the playground. that should be enough to adapt it for your processor.

thanks