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.

How to read data from temperature sensor LM74?

Other Parts Discussed in Thread: TMS570LS20216, LM74, HALCOGEN

I'm new in microcontroller programming.

I have a TMS570LS20216 with the temperature sensor LM74 connected to the SPI5 of the MCU.

Now I would like to read the data from the LM74, but I have no idea how to!?

I work with HalCoGen4 and CCS6.

It would be glad if someone could give me an example.

Thanks!

  • That's a pretty big topic..

     

    If you look in Halcogen there is a mibspi example, using spi is similar.

    If you haven't, read through the device datasheet, it goes into detail of how to interact with it over spi.

     

    I would suggest giving it a try, and coming back with more specific questions (for instance, start with trying to send data out on the spi bus and make sure that the data and clock lines are what you expect)