Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3980

Troubleshooting • Auxillary SPI - How to set like main SPI ?

$
0
0
Hi,

i have done the following steps to activate the ausxillary SPI on my RasPi 4 - Model B:
1. write in config.txt :
dtparam=spi=on
dtoverlay=spi1-3cs (suggested in https://pinout.xyz/pinout/spi) -> set 3cs to activate all CS (including CS2 GPIO - 16)

2. write in main file
// SPI settings
#define SPI_BAUDRATE 3000000 // 100 kHz <-- limited by level shifter and arduino UNO SPI slave
#define SPI_FLAGS 2097408/ SPI Flags -> see documentation pigpio (binary flags -> decimal number)
#define SPI_CHANNEL 2 // SPI channel for Chip select Pin (2 -> CS2 / GPIO 16)

and it works in such a way, that the SPI Clck is on GPIO 21, MOSI on GPIO 20 ASO

My Question:
I recognized, that the SPI Clock is interrupted every transmitted word (in my case 32 Bit - with an interrupt of 3 bits)
However, when i use the Main SPI with similar settings - it is not interrupted. Thats what i want.

Could somebody tell me why i have this interrupts and how to solve it?

Thanks a lot!
Ben

Statistics: Posted by b.hoep — Tue Oct 29, 2024 11:33 am



Viewing all articles
Browse latest Browse all 3980

Trending Articles