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.

TDC1000: Problem with SPI communication, i can't read the value of the registers

Part Number: TDC1000

Hi,

i'm working on the design of a ultrasonic sensor for measure the fluid level in a tank, i'm using CCS C in a  PIC18F2550 like microcontroller and Software SPI(using Hardware SPI only can send 8 bits). On the osciloscope i see the SCLK, SS and MOSI works fine but, when i send the read command in the MOSI Bus, i only can see a copy of the SCLK but with less voltage . That's will be a programming problem? or will be a hardware problem? Please, excuse my poor english but i'm learning yet. 

  • Hello,

    Do you mean that you do not see the correct output on the MOSI line? Or that the incorrect signals are being output on the MISO line after the read command has been sent?

    Regards,
  • well, i'm trying to know if my new configuration is right saved in the TDC's registers, when i send the byte for the address and the read comand all works fine but the response is like a copy of the SCKL but with 1v signals. the real data is present, i can see them in the osciloscope because are in 5v but the pulse of 1v plus the noise in the signal sometimes is reading by the pic like a logic 1 and crash my data.