Part Number: CC2540
Other Parts Discussed in Thread: CC2541
Hello everyone,
I'm trying to use CC2540 to read temperature and humidity from a DHT11 sensor.
This device uses one wire communication. The host (CC2540) must pull the line down for at least 18 ms, then passes control to the sensor.
The bit format is as follows : 50µs low followed by 27µs high -> 0
50µs low followed by 70µs high -> 1
Total data size is 40 bits.
I tried to use input capture (Timer1 and P0_2). I also tried using GPIO interrupt and reading the timer counter at that time in an array.
In both cases the timings correspond to low bits. (50µs low+ 27 µs high).
I used the sensor with another 32 bits MCU and it worked fine.
Is there something I'm missing here?
Thanks in advance.