Search found 3 matches

by Alextesttech
Fri Apr 10, 2026 12:45 pm
Forum: Hardware
Topic: How To Reduce Time Between SPI Transactions
Replies: 4
Views: 121

Re: How To Reduce Time Between SPI Transactions

I rewrote the read function to be simpler:
bool readData(adc_channel_data *DataStruct)
{
spiSendReceiveArrays(testtx,testrx,24);
return true;
}
this reduced the time to ~22.4us between transactions.
I have been informed that the hardware will now require two of the ADS131M06 parts.
Would it be ...
by Alextesttech
Thu Apr 09, 2026 5:48 pm
Forum: Hardware
Topic: How To Reduce Time Between SPI Transactions
Replies: 4
Views: 121

Re: How To Reduce Time Between SPI Transactions

How many channels are you reading? I.e. what's your frame size/rate?
Six channels, a frame is 8 words, each word is 24bits so 192 bits at a clock speed of 20Mhz.


// Send NULL word, receive response word
uint16_t opcodes[7] = {0};
opcodes[0] = OPCODE_NULL;
uint8_t numberOfBytes ...
by Alextesttech
Tue Apr 07, 2026 8:13 pm
Forum: Hardware
Topic: How To Reduce Time Between SPI Transactions
Replies: 4
Views: 121

How To Reduce Time Between SPI Transactions

Hello I am trying to sample a ADS131M06 at 32kHz but I am struggling to get the time between SPI transactions below 30us any suggestions?
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "ads131m0x.h"


static const char *TAG = "MAIN ...

Go to advanced search