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.

CCS/TDC7200: TDC7200 sample code

Part Number: TDC7200
Other Parts Discussed in Thread: TDC7201-ZAX-EVM

Tool/software: Code Composer Studio

hi 

i have TDC7200 i work with stm32f103 with GCC

i cant work with TDC7200 

Unfortunately, I did not manage to communicate with TDC7200 and write and read registers
Do you have a code and library sample to help me out?
Thanks

  • Hello,

    If you download the TDC7201-ZAX-EVM GUI from the following page, you will find the source code for the firmware in the installation directory of the GUI. 

    The default is here: C:\Program Files (x86)\Texas Instruments\TDC720xEVM\Firmware

    Regards,

  • That's right, but is not a library ready for STM32f103?
    I use it without wasting time and getting involved in building a library...
  • can help me i complet this function ?
    void TDC7200_WRITE_REGISTER (uint8_t incoment,uint8_t register_adress,uint8_t value){


    TDC7200_CS_status(Bit_RESET);

    SPI_I2S_SendData(SPI1,(((register_adress & 0X1Fu) | 0X40u) << 8) | value);
    sprintf(AAA,"SENT:%d /r/n",(((register_adress & 0X1Fu) | 0X40u) << 8) | value);
    Uart_Puts(AAA);

    TDC7200_CS_status(Bit_SET);

    //void TDC7200::spiWriteReg8(const uint8_t addr, const uint8_t val)
    //{
    // SPI.beginTransaction(SPISettings(TDC7200_SPI_CLK_MAX, TDC7200_SPI_ORDER, TDC7200_SPI_MODE));
    // digitalWrite(m_pinCs, LOW);
    //
    // (void)SPI.transfer16((((addr & TDC7200_SPI_REG_ADDR_MASK) | TDC7200_SPI_REG_WRITE) << 8) | val);
    // 0x1Fu 0x40u
    // digitalWrite(m_pinCs, HIGH);
    // SPI.endTransaction();
    //}


    };