I’m using a Xiao SAMD21 to drive an an LCD display (ST7735R controller, 128x160) and it is almost fast enough to get the refresh rate that I want…
I have two questions:
What is the default SPI rate for the Xiao SAMD21?
Can I make it use a faster SPI data rate?
I’ve tried experimenting with requesting different data rates using SPI.beginTransaction (and even with the legacy setClockDivider API) but with no visible change in data rate.
Since the Xiao is is 48mhz clock and I’ve read that the display can do 15mhz, I am hoping that 12mhz (or /4 divider) would work. But I don’t even know what the current (default) rate is… for all I know it might already be at 12mhz.
If the default is less than 12mhz, I’d like to increase it to 12.
Or, if it’s already 12mhz by default, then that would be good to know.
This is not SAMD21 data, but the following link may be helpful.
Even if you increase the SPI clock speed, the data transfer speed will not increase significantly if the interval between 1-byte transmissions is large.
If measurement is necessary, you can obtain similar data by uploading the sketch you want to try.
The SPI clock frequency of SAMD21 is 24 MHz by default, but I set 12 MHz to match the 15 MHz specification of ST7735.