Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support higher SPI clock frequency #33

Open
microxblue opened this issue Feb 28, 2021 · 0 comments
Open

Support higher SPI clock frequency #33

microxblue opened this issue Feb 28, 2021 · 0 comments

Comments

@microxblue
Copy link

Many of the recent PC uses 33Mhz SPI clock. So the current 20Mhz limitation might not work on those platforms. I am thinking the implementation could be enhanced a little bit to allow higher SPI clock freq.

Current implementation issues the SDRAM read command immediately after receiving A1 SPI address on a SPI read command. Later on A0 SPI address can be used to select low/high byte of the 16bit word. This approach provides around 1.5 SPI clock timing for SDRAM to complete read and prepare the first bit output on SPI MISO. However, the timing is very tight for SDRAM read and it limits the max supported SPI clock freq.

Could we issue the SDRAM read command immediately after receiving A2 SPI address instead ? This provides one more SPI clock timing for SDRAM read. Accordingly SDRAM needs to do a burst read with BL=2. It reads a 32bit dword. And later on A1:A0 SPI address can be used to index one of the 8-bit slice. In this way, I think it should be able to allow higher SPI freq.

Is it feasible to do ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant