SBOA542 November   2022 TMP1826 , TMP1827

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 Bus Reset and Response
    2. 1.2 Host Write, Device Read
    3. 1.3 Host Read, Device Write
  4. 2Interfacing TMP1826 With the Host MCU
    1. 2.1 Using GPIO as Host Interface
    2. 2.2 Software Driver for GPIO
    3. 2.3 Using UART as Host Interface
    4. 2.4 Software Driver for UART
    5. 2.5 Using SPI as Host Interface
    6. 2.6 Software Driver for SPI
  5. 3Summary
  6. 4References

Interfacing TMP1826 With the Host MCU

The previous section provided a basic understanding of how the single-wire communication is performed using the different low times to represent reset, logic '0' and logic '1'. This section provides mechanisms by which different peripherals like general-purpose input and output (GPIO), UART, or SPI can be used by a host MCU to communicate with the TMP1826 for configuration, or getting temperature conversion results, or both.

The default overdrive speed (90 kbps) is used for communication with the devices to simplify the interface and software requirements,.

Note: All subsequent example waveforms were generated using respective interfaces on TI's TM4C123x and TM4C129x family of microcontrollers.