This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28377D: DHT22 Interfacing Code Requested

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Hello, 

First of all, my apologies if this is not the right place to post this.

Im using a linux based board that has the microcontroller mentioned on this question. I have a temperature-humidity sensor, more specifically this one "DHT22" , that i would like to connect to my board and make reading through GPIO. Im quite new on this GPIO programing and all I found are libs for Rpi or arduino which have different controllers than this. SO i was wondering if it's possible to gt some code sample that would help me a bit on this matter or may be somebody already implemented this and can give me a short explanation on how to do it.

Regards

PD: I would like to make it on c/c++

  • Hi Andres,

    Taking a quick look at the DHT22 datasheet, it seems like the protocol it uses is custom/ad-hoc, so we probably can't help you too much from the TI side with example code using a standard communications interface (I2C, SPI, SCI, etc).

    I'll edit the post title to make the 'DHT22' part number more visible in case anyone in the community has worked with this sensor before.

    If you can't find a C2000 code starting point, you can probably try to port the aurduino code.
  • What im actually looking for is some code with mapped memory that could read the registry of the pins. I think that would help a lot.
  • Andres,

    You can download C2000Ware and reference the GPIO example here: ~\C2000Ware_<ver>\driverlib\f2837xd\examples\cpu1\gpio

    -Tommy