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.

Response is always 0xFF

Other Parts Discussed in Thread: TMP275

Hi Folks 

I am using TMP275 and the response I get from the temperature sensor is always 0xFF, My slave address is 0x90 

TEMP_READ = 0xFF response

CONFIG_READ  = 0xFF response 

TLOW_READ = 0xFF

THIGH_READ 0xFF

Do you have any clues whats wrong ?

Thanks in Advance 

AK

  • Hi AK,

    Other than incorrect values returned by the TMP275, does the communication with the TMP275 adhere to the description in the datasheet? For example, does the TMP275 acknowledge the reception of a valid slave address from the master? It would also be good to verify that the pointer register values transmitted by the master point to the correct register locations in the TMP275.

  • My simple code
    i2cState = n_CI2C.MasterSend(
    (TMP275_SL_ADDR),
    &tx_data[0],
    1);
    
    
    i2cStatus_t CI2C::MasterSend(uint8_t adr, uint8_t * const tx_buf, uint16_t tx_num)
    {
    MD_STATUS status;
    status = R_IICA0_Master_Send(adr, tx_buf, tx_num, 20);
    if (status == MD_OK) return I2C_STATUS_OK;
    else if (status == MD_BUSY1)return I2C_STATUS_BUSY;
    else if (status == MD_ERROR)return I2C_STATUS_ERROR;

    return I2C_STATUS_NAK;
    }
    this is part of my  code 
    and every time i try to do TEMP_READ , the response I get is I2C_STATUS_OK meaning the address was accepted