Does anyone know of a good tutorial which cover one wire communications and how to set it up?
I am getting this temperature sensor for my project: https://www.sparkfun.com/products/11050. I am going to be connecting it to the ATMega128 microcontroller. I read through the datasheet but it is still a little unclear about one wire communications. Hardware wise, I think it is pretty straight forward. But what I got, I need to use two pins on the microcontroller; one for Tx and one for Rx. These two pins will be connected to the same wire and need to be isolated from each other as in one cannot see what the other is doing. Is this correct? Does it matter which two pins I connect to the microcontroller or can pick any other two pins?
The part that I am a little unclear on is how do I code for one wire communications? It looks like that everything is related to being high for x amount of uS or being low for y amount of uS. In that case, I guess I can use a timer to time how long everything is high or low. What would you do?
Any help would be much appreciated. Than you.