I'm a beginner in ARM programming how do interface DHT22(temperature and humidity sensor) with LPC2148 I need help with flow chart and code if possible thank you uys in advance
You didn't explain how you think I2C is "similar" to 1-Wire?
I can't see that they are in any way similar at all!
IMO there are quite a few similarities like: Both use open drain output so they cannot drive the line high by themselves. This in turn means they need an external pullup to pull the line continuously high. Data is Received and Transmitted on the same line\wire. Both support multiple Slaves on the same bus. Also, the bus enters idle state when data line is continuously high.
Also with multiple slaves I mean the 'basic' topology since both support slave addressing.
OK, so they both use open-drain drivers, and support slave addressing.
I don't think that's sufficient to say that they are "similar" - certainly not "very similar"
There are also very significant differences:
I2C requires a clock line - 1-Wire does not;
The Slave addressing is optional for 1-Wire - not on I2C;
The signalling protocol is entirely different.
And, of course, the topic of this thread - the DHT22 - is not 1-Wire anyhow.
They both use serial to communicate. Thats reasonably similar. Just like pascal is similar to c.
Indeed.
So I2C is similar to Ethernet;
1-Wire is similar to USB;
They are both similar to an IR remote control ...