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.

MSP430G2553: Using a DS18B20 Temperature Sensor “without” a dedicated msp430g2553 library

Part Number: MSP430G2553


I'm trying to improve myself on the MSP430G2553 microcontroller.I want to send and receive digital information from a sensor or a device.For this, I realized that I needed to learn the UART, SPI and I2C modules in the Msp430g2553 microcontroller.

First of all, I started with UART. I learned UART. I haven't learned SPI and I2C modules yet. It will be their turn to come.Modules such as RTC or Dallas DS18B20 have digital information. There are library codes written to read this information.Library codes seem very complex to me. I can't understand the codes.

I want to start with a simple application. I want to read temperature information from Dallas DS18B20 sensor with GPIO or UART without library.With UART, I can read a character from the computer or write a character to the computer.

But I don't know how to read an information from a sensor. I need a simple example code for this.I can start with a simple code first and develop later.then my question is: Is there an open code where I can read the temperature information on the Dallas DS18B20 temperature sensor?  i don't know why but i found out that i can't do that with uart. There is information that this can be done using GPIO. Is there a sample code for this?

**Attention** This is a public forum