Please note: We are aware of an issue affecting replies on the Arm Community forums, which may not be loading as expected.
We apologize for any inconvenience and appreciate your patience while we investigate and work to resolve the issue.
Thank you for your understanding.
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
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 ...