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

Bare metal, Assembly language • Re: RPI5 & SPI clock

$
0
0
Some answer here : https://github.com/foss-for-synopsys-dw ... i/dw_spi.c
And https://github.com/foss-for-synopsys-dw ... spi_priv.h

Where these registers are master only:

Code:

#define CTRL1           (0x01)  // master only#define SER             (0x04)  // master only#define BAUDR           (0x05)  // master only
So no special settings for CS and clock (excepted clock mode), there are just an external CS required for SPI4 slave. I not understand when the CS input is always to "1", I get these interrupts: Transmit FIFO Overflow + Receive FIFO Overflow + Receive FIFO Underflow

Statistics: Posted by aniplay — Sat Apr 13, 2024 8:52 am



Viewing all articles
Browse latest Browse all 5169

Trending Articles