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.

Linux/ADS8634: ADS8634 read data error

Part Number: ADS8634

Tool/software: Linux

hi

When I write data to the register of ADS8634 through spi, but when the reading data is, it does not conform to the written data.

i want write data;

read data:

  • I want write data:
    uint8_t Writedata2[2];
    Writedata2[0] = 0x07;
    Writedata2[1] = 0x06;
    ret = write(fd,&Writedata2[0],2);
    uint8_t Writedata3[2];
    ret = read(fd,Writedata3,2);
    printf("read Writedata3 = %x %x\n",Writedata3[0],Writedata3[1]);

    I read data:
    [ 86.794977] spidev spi1.0: not using DMA for McSPI (-19)
    [ 86.800409] spidev spi1.0: not using DMA for McSPI (-19)
    spi mode: 0x0
    bits per word: 8
    default tx =
    read_data = 0x0
    read_data = 0x0
    RX | 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ | ..
    read Writedata3 = 0 0
  • Hi there,

    Is your issue resolved?