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

General • Re: Continues SPI transfer

$
0
0
BTW, the actual SCK frequency is clk_peri divided by an even number. By default, clk_peri is connected to clk_sys. So, if your clk_sys is the default 125 MHz, and you ask for 30 MHz, you're probably actually getting 125,000,000 / 6 = 20,833,333 Hz. However, the next higher is 125,000,000 / 4 = 31,250,000 Hz which might be out of spec for your peripheral.
The FT232H is the master in this case, my rp2040 is the slave. I have measured the clock with my Saleae logic pro 16 and it is roughly 30MHz.
If the best match would be 31,25 MHz then I can try this. If this isn't the case I will leave it like this.
This is how the native SPI controller works unfortunately. I don't know what ARM was thinking when they designed this nonsense. Luckily you still have PIO which should work correctly.
I've been using Nordic microcontrollers for a very long time, so I was quite used to how they implement their peripherals.

Statistics: Posted by Elixz89 — Fri Sep 06, 2024 8:05 pm



Viewing all articles
Browse latest Browse all 5444

Trending Articles