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.

MSP432E401Y: MSP432E401Y - 1 wire

Part Number: MSP432E401Y
Other Parts Discussed in Thread: TM4C1294NCPDT

Hi

I'm working with the MSP432E401Y Eval board. Right now, I'm trying to calculate the temperature using DTH11 and this sensor uses 1-wire protocol. To measure the temperature and humidity I need to set the pin from output HIGH to LOW for 18ms and then change the pin from output to input and start reading the values. To read the values I need to measure each pulse that the sensor sends to the MCU, but I don't know how since I can configure the pin as input and start reading when it sense a rise/fall edge. Can I start a timer when it sense a rise edge, it start counting and when detect a fall edge, it stops the timer and get the value? or Do I need it to measure by putting a loop and counting every time is inside of that loop until detect a change in the state? If it is the latter, how do I get the relation between tick counter and the time (what I mean, every time I increase +1 the variable is not 1 second since the PLL is running at 120Mhz, so I don't know if one tick is 8.3ns (1/120MHz) or sth else)