Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 21930

CCS/MSP430F5529: DHT22 Interfacing MSP430

$
0
0

Part Number:MSP430F5529

Tool/software: Code Composer Studio

I wanted to study and implement a one wire connection using the MSP430 MCu and

I tried that with the DHT22 humidity and temperature sensor .

After I read the datasheet of the sensor and saw the specific timings

I found a code ,searching in the web,which was implementing the DHT11 with another msp mcu so  I changed the necessary values in order the code would work in the MSP430F5529.

I get no bugs or errors but the result is not right. I think the problem has to do with timing but I cannot figure it out.

Below is the function for reading the DHT which is called in the main().

I use TImer0_A5 in continuous mode TA0CTL = TASSEL_2 + MC_2 ;

(the code is not mine I was just trying to study it )


Viewing all articles
Browse latest Browse all 21930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>