<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48962/reading-from-slave-chip-ads1293-through-spi</link><description>Hi everyone! 
 I&amp;#39;m trying to read a register from the ADS1293 chip by using SPI but have been stuck for a good two days. The very basic code I have is right below: 
 
 There are two things I&amp;#39;m not 100% sure about: 
 1) If the pins I&amp;#39;m using are correct</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 May 2023 12:37:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48962/reading-from-slave-chip-ads1293-through-spi" /><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/423779?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 12:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96e8d750-986d-49d1-bf7a-5aaecfc4d55d</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This case is close to&amp;nbsp;4 years old at this point, so the chances you&amp;#39;ll get a reply from anyone active in this ticket are not likely to reply. If you need technical support I&amp;#39;d recommend creating a separate ticket where you describe&amp;nbsp;&lt;strong&gt;your&amp;nbsp;&lt;/strong&gt;problem in detail and it will be assigned to the correct person. You can link to this case if you think it&amp;#39;s relevant as well.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/423732?ContentTypeID=1</link><pubDate>Thu, 04 May 2023 10:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7546815-1e36-4474-a865-3ae5e998af87</guid><dc:creator>NeMo93</dc:creator><description>&lt;p&gt;Hi, i am facing a similar problem while trying to set up the SPI connection between ads1293 and nrf52840. Did you figure out how to solve this issue?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/198245?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 19:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c21d216-8b5c-401e-aa7a-46bde46c715d</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Thanks again! I changed to DC and now I see that everything is the same for the Arduino and Nordic chip except for the SDO on the slave chip, nothing gets sent back&amp;nbsp;from the ads for some reason when using the Nordic chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/198241?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 18:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce422a0-3320-4a1c-8f70-bce1be00fe20</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;You have the &amp;#39;scope incorrectly set to the AC setting on both probes; change to DC ..for the slower clock speed also slow down the timebase to see the whole waveform. 50mSecs seems already very slow, what speed are the SPI clocks?&lt;/p&gt;
&lt;p&gt;The Arduino is doing 2 separate SPI transactions of 1 byte each; you can do the same on the nRF by sending 2 messages of 1 byte each; the first would be the command and the second would clock out the response. Inefficient, but then you compare like with like and can increase the clock back to the same as Arduino.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/198234?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 17:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bd4aadb-1e2e-4ab1-86bb-e52c9b47ae7b</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Thanks! I removed the manual ss controls and lowered the speed. Now I get this on the oscilloscope although the execution still gets stuck in the same place:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/nrf-ss-pin.png" /&gt;&lt;/p&gt;
&lt;p&gt;Here is what it looks like on the Arduino that works:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/arduino-ss-pin.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/198222?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 14:58:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b43586da-4767-4982-8f1f-e5a8e880054d</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;I think there is a misunderstanding about the use of the cs pin; either the spim manager handles it or your code does, not both. Here you tell the manager to control cs but then you take over:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        .ss_pin         = 3,
    };
    ret_code_t err_code = nrfx_spim_init(&amp;amp;m_spi_master_0, &amp;amp;spi_config, NULL, NULL);

  nrf_gpio_pin_clear(3);
  ret_code_t err_code = nrfx_spim_xfer(&amp;amp;m_spi_master_0, &amp;amp;xfer_desc, 0);
  nrf_gpio_pin_set(3);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Either do this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        .ss_pin         = 3,
    ret_code_t err_code = nrfx_spim_init(&amp;amp;m_spi_master_0, &amp;amp;spi_config, NULL, NULL);

//nrf_gpio_pin_clear(3);
  ret_code_t err_code = nrfx_spim_xfer(&amp;amp;m_spi_master_0, &amp;amp;xfer_desc, 0);
//nrf_gpio_pin_set(3);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;or this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;        .ss_pin         = NRF_DRV_SPI_PIN_NOT_USED, // ie 0xFF

  nrf_gpio_pin_clear(3);
  ret_code_t err_code = nrfx_spim_xfer(&amp;amp;m_spi_master_0, &amp;amp;xfer_desc, 0);
  nrf_gpio_pin_set(3);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also think 4MHz is too high to start; once you have it working you can always try speeding up&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/197986?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 06:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a64009e1-2596-48c5-87b8-8ffc42bee090</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;I used an oscilloscope and changed the code slightly but still the same behavior as mentioned below. I used an arduino to talk to the ADS chip and it worked fine. It looks like the output to the slave select pin isn&amp;#39;t happening at all (voltage stays same on oscilloscope) when using the nrf chip vs the arduino. Any ideas?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static uint8_t tx[2];
static uint8_t rx[2];

static const nrfx_spim_t m_spi_master_0 = NRFX_SPIM_INSTANCE(SPI_INSTANCE);

void ADS_init( void )
{
    nrfx_spim_config_t const spi_config =
    {
        .sck_pin        = 4,
        .mosi_pin       = 22,
        .miso_pin       = 23,
        .ss_pin         = 3,
        .irq_priority   = APP_IRQ_PRIORITY_LOW,
        .orc            = 0xFF,
        .frequency      = NRF_SPIM_FREQ_4M,
        .mode           = NRF_SPIM_MODE_2,
        .bit_order      = NRF_SPIM_BIT_ORDER_MSB_FIRST, 
    };
    ret_code_t err_code = nrfx_spim_init(&amp;amp;m_spi_master_0, &amp;amp;spi_config, NULL, NULL);
    SEGGER_RTT_printf(0, nrf_strerror_get(err_code));
     
}

uint8_t Read_reg(uint8_t addr)
{ 

  tx[0] = addr | ADS1293_READ_BIT; 
  tx[1] = 0x00; 
  nrfx_spim_xfer_desc_t xfer_desc = NRFX_SPIM_XFER_TRX(tx, 2, rx, 2);
  nrf_gpio_pin_clear(3);
  ret_code_t err_code = nrfx_spim_xfer(&amp;amp;m_spi_master_0, &amp;amp;xfer_desc, 0);
  nrf_gpio_pin_set(3);
  SEGGER_RTT_printf(0, nrf_strerror_get(err_code));
  return rx[1];

}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/197985?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 06:35:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7da7770-db2e-463a-8bff-6195e63d94fd</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Thank you for the response!&amp;nbsp;I&amp;#39;ve changed the code slightly but the issue is it getting stuck and not returning from the&amp;nbsp;nrf_spim_event_check. Also as mentioned below the documentation for the 1293 differs from 1291/2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/195774?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 23:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01958589-bc51-45d8-a258-424b729bd0df</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Are you still using the code you posted above?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint8_t Read_reg(uint8_t addr)
{ 
  tx = ADS1293_READ_BIT | addr;
  ret_code_t err_code = nrf_drv_spi_transfer(&amp;amp;m_spi_master_0, &amp;amp;tx, 1, &amp;amp;rx, 1);
  SEGGER_RTT_printf(0, nrf_strerror_get(err_code));
  return rx;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That will not work, as that code only reads and writes a single byte and so you never get to the registers ..&lt;/p&gt;
&lt;p&gt;This is an example for the ADS1291/2:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Scratch pad comms buffers, used for reading all AFE registers - want to preserve these for debugging
static uint8_t mTxBuf[] = {ADS_CMND_RREG, NUMBER_OF_ADS_REGISTERS-1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
static uint8_t mRxBuf[sizeof(mTxBuf)];
static const uint8_t mRxTxBufLength = sizeof(mTxBuf);
STATIC_ASSERT(sizeof(mAFE_RegisterActualSettings)+2 == sizeof(mTxBuf)/sizeof(mTxBuf[0]));

#define AFE_HARDWARE_VERSION 0x53 // ADS1292

/**
 * @brief SPI command to read AFE registers
 * @param none
 */
static void ReadAfeRegisters(void)
{
    uint32_t spiAttempCount, mAfeSpiErrorCount = 0;

    for (spiAttempCount=0; spiAttempCount &amp;lt; AFE_MAX_ATTEMPTS; spiAttempCount++)
    {
        memset(mRxBuf, &amp;#39;?&amp;#39;, mRxTxBufLength);
        mAfePacketTransferComplete = false;
        APP_ERROR_CHECK(nrf_drv_spi_transfer(&amp;amp;mAfeSpiInstance, mTxBuf, mRxTxBufLength, mRxBuf, mRxTxBufLength));
        // Hard delay per byte to transmit
        nrf_delay_us(mRxTxBufLength*AFE_SPI_PER_BYTE_uSECS);
        // Check for ADS1292 Id
        if (mAfePacketTransferComplete &amp;amp;&amp;amp; (mRxBuf[2] == AFE_HARDWARE_VERSION))
        {
            // Correct Id for this AFE, post the results skipping cmd code &amp;amp; length bytes
            //memcpy(&amp;amp;mAFE_RegisterActualSettings, &amp;amp;mRxBuf[2], sizeof(mAFE_RegisterActualSettings));
            break;
        }
        else
        {
            mAfeSpiErrorCount++;
            // Extra hard delay per byte to transmit
            nrf_delay_us(mRxTxBufLength*AFE_SPI_PER_BYTE_uSECS);
        }
    }
    // Post the results (may be bad) skipping cmd code &amp;amp; length bytes
    memcpy(&amp;amp;mAFE_RegisterActualSettings, &amp;amp;mRxBuf[2], sizeof(mAFE_RegisterActualSettings));
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My point isn&amp;#39;t to use this code, but instead that there is nothing useful in the first returned byte and so a command requesting a single byte transfer isn&amp;#39;t going to be useful. The first byte of the synchronous SPI transfer says what data should be returned on 2nd and successive bytes ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/195771?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 21:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aaaa7a26-f025-48cb-bacb-15dc1577df16</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Still haven&amp;#39;t been able to solve it, the last function in the callstack is the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img height="21" src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/pastedimage1562016049206v1.png" width="611" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194841?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 10:44:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a160ac11-b505-4bf7-9648-2199629fa417</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;I compared the documentations for the 1298 and 1293 and it looks like you&amp;#39;re right about some of the things not being applicable (the wakeup commands etc.). I tried changing the frequency and SPI mode but that didn&amp;#39;t help. Thanks either way!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194840?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 10:43:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c15ea5f-a2bd-459e-adbc-0629d632c22d</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Thanks for the answer! Won&amp;#39;t have access to an oscilloscope for a couple of days, will do so as soon as I have but I&amp;#39;m hoping I can get past this issue before that. The execution gets stuck in this while loop (part of nrfx_spim.c):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; if (!p_cb-&amp;gt;handler)
    {
        while (!nrf_spim_event_check(p_spim, NRF_SPIM_EVENT_END)){}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s&amp;nbsp;nrf_spim_event_check (part of nrf_spim.h):&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="c_cpp"&gt;__STATIC_INLINE bool nrf_spim_event_check(NRF_SPIM_Type * p_reg,
                                          nrf_spim_event_t spim_event)
{
    return (bool)*(volatile uint32_t *)((uint8_t *)p_reg + (uint32_t)spim_event);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194699?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 14:40:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c93c1846-8519-401d-89c7-3bbcece774de</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Edit: Looks like the ADS1293 is quite different (upgraded) from the ADS1291/2/8 so some of these comments may not apply.&lt;/p&gt;
&lt;p&gt;There are a number of other issues with your settings. Start with a slower clock and SPI Mode 1:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// SPI INTERFACE
// The SPI-compatible serial interface consists of four signals: CS, SCLK, DIN, and DOUT. The interface reads
// conversion data, reads and writes registers, and controls ADS1291, ADS1292, and ADS1292R operation. The
// DRDY output is used as a status signal to indicate when data are ready. DRDY goes low when new data are
// available.
// Chip Select (CS)
// CS selects the ADS1291, ADS1292, and ADS1292R for SPI communication. CS must remain low for the entire
// duration of the serial communication. After the serial communication is finished, always wait four or more tCLK
// cycles before taking CS high. When CS is taken high, the serial interface is reset, SCLK and DIN are ignored,
// and DOUT enters a high-impedance state. DRDY asserts when data conversion is complete, regardless of
// whether CS is high or low

// Sending Multi-Byte Commands
// The ADS1291, ADS1292, and ADS1292R serial interface decodes commands in bytes and requires 4 tCLK cycles
// to decode and execute. Therefore, when sending multi-byte commands, a 4 tCLK period must separate the end of
// one byte (or opcode) and the next.
// Assume CLK is 512 kHz, then tSDECODE (4 tCLK) is 7.8125 us. When SCLK is 16 MHz, one byte can be
// transferred in 500 ns. This byte-transfer time does not meet the tSDECODE specification; therefore, a delay must be
// inserted so the end of the second byte arrives 7.3125 us later. If SCLK is 1 MHz, one byte is transferred in 8 �s.
// Because this transfer time exceeds the tSDECODE specification, the processor can send subsequent bytes without
// delay. In this later scenario, the serial port can be programmed to move from single-byte transfer per cycle to
// multiple bytes.
  
  spi_config.frequency = NRF_DRV_SPI_FREQ_500K;  // Ensure less than 4 clk cycles for ADS1291/2/8
  spi_config.bit_order = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST;
  spi_config.mode      = NRF_DRV_SPI_MODE_1;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note you need to stop continuous read mode before accessing registers by sending command &lt;em&gt;ADS_CMND_SDATAC&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/****************************************************************/
/* ADS1x9x COMMAND DESCRIPTION and definitions */
/****************************************************************/
typedef enum {
  // System Commands
  ADS_CMND_WAKEUP    = 0x02,   // Wake-up from standby mode
  ADS_CMND_STANDBY   = 0x04,   // Enter standby mode
  ADS_CMND_RESET_CMD = 0x06,   // Reset the device registers
  ADS_CMND_START     = 0x08,   // Start/restart (synchronize) conversions
  ADS_CMND_STOP      = 0x0A,   // Stop conversion
  ADS_CMND_OFFSETCAL = 0x1A,   // Channel offset calibration - needs to be sent every time there is a change to the PGA gain
  // Data Read Commands
  ADS_CMND_RDATAC    = 0x10,   // Enable Read Data Continuous mode.
                               // - This mode is the default mode at power-up.
  ADS_CMND_SDATAC    = 0x11,   // Stop Read Data Continuously mode
  ADS_CMND_RDATA     = 0x12,   // Read data by command; supports multiple read back.
  // Register Read/Write Commands
  ADS_CMND_RREG      = 0x20,   // Read n nnnn registers starting at address r rrrr
                               //  - first byte 001r rrrr (2xh)(2) - second byte 000n nnnn(2)
  ADS_CMND_WREG      = 0x40    // Write n nnnn registers starting at address r rrrr
                               //  - first byte 010r rrrr (2xh)(2) - second byte 000n nnnn(2)
} ADS1x9xCommand_t;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Have a look at the answers we provided in this link:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48513/problem-using-the-nrf52840-to-interface-an-ads1298-via-spi"&gt;interface-an-ads1298-via-spi&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194689?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 14:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee41c224-d04c-4a90-a8f5-8ee710b10999</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Again, have you used&amp;nbsp;&lt;span&gt;an &lt;strong&gt;oscilloscope&lt;/strong&gt; to see what&amp;#39;s happening on the wires?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have you used the &lt;strong&gt;debugger&lt;/strong&gt; to find exactly where it&amp;#39;s getting stuck within the software?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194685?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 13:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:212c9ede-7aa3-4c2f-8623-5ddaba16cff2</guid><dc:creator>Konrad213</dc:creator><description>&lt;p&gt;Thank you! Now the execution gets stuck at&amp;nbsp;&lt;span&gt;nrf_drv_spi_transfer which never returns anything do you know any potential reasons for that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194662?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 12:59:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df24ef9e-2766-4665-a242-1e123c2ffb51</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It seems like you&amp;#39;ve mixed up the SPI pin configuration, as you should refer to the pin configuration chapter when configuring pins, and not the pin assignments. The sck_pin, mosi_pin, miso_pin, and ss_pin configured like this for the setup you&amp;#39;re describing.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        .sck_pin        = 4,
        .mosi_pin       = 20,
        .miso_pin       = 19,
        .ss_pin         = 3,&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from slave chip (ADS1293) through SPI</title><link>https://devzone.nordicsemi.com/thread/194609?ContentTypeID=1</link><pubDate>Tue, 25 Jun 2019 10:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2dab307-c055-44c5-8d09-ea8fe4a07ff7</guid><dc:creator>awneil</dc:creator><description>[quote userid="80983" url="~/f/nordic-q-a/48962/reading-from-slave-chip-ads1293-through-spi"]Is there any way to make sure that the pins I&amp;#39;m using are correct[/quote]
&lt;p&gt;Get an oscilloscope and look at what&amp;#39;s happening on the wires.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>