Hi everyone,
I use Orin the bsp is 35.1, I find that SPI transfer interval about 20ms. How to fix it? Thanks.
Sorry for the late response, have you managed to get issue resolved or still need the support? Thanks
I need to support, thanks.
Please reference to below topic.
HI ShaneCCC,
My test case like below:
for (i=0; i<10; i++) {
t1 = ktime_get_real();
gpiod_set_value(gpio, 0);
t2 = ktime_get_real();
gpiod_set_value(gpio, 1);
t3 = ktime_get_real();
spi_read();
t4 = ktime_get_real();
}
t2-t1=20us,t4-t3 sometimes is 100us, mostly 20ms. When I comment gpiod_set_value(gpio, 0) and gpiod_set_value(gpio, 1), t4-t3 =100us. I think setting GPIO will make SPI transfer time longer.
Why need set GPIO? What does this GPIO purpose?
Thanks
The spi connect a ADC, the ADC need a gpio triger signal to start conversion.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.