Hi:
nRF52832 SDK17.1.0\examples\peripheral\spi\pca10040 , Is the maximum frequency of the SPI in here only 8M?
The following screenshots:
Can't the frequency be set to higher ? Such as 20M , 30M .
thanks !
Hi:
nRF52832 SDK17.1.0\examples\peripheral\spi\pca10040 , Is the maximum frequency of the SPI in here only 8M?
The following screenshots:
Can't the frequency be set to higher ? Such as 20M , 30M .
thanks !
zxcv7063,
Yes, the maximum SPI clock frequency can be 8MHz. Refer to datasheet page # 421. I am attaching the screenshot below as well.
Thanks.
Hi:
Thank you for your reply .
Our project application needs 20M, how should we modify it?
Hello,
@varung the datasheet you're referring to seems to be for the nRF52840, while zxcv7063 is asking about the nRF52832.
The maximum frequency of the SPI and SPIM peripheral of the nRF52832 is 8 MHz, as shown in the SPIM peripheral documentation.
If you require < 20 MHz you could switch to using the nRF52840 or the nRF52833, both of which have an SPIM instance with 32 MHz as its maximum frequency.
Best regards,
Karl
Hi:
Thank you for your reply .
Is the SPI in SDK hardware SPI or software analog SPI ?
Can I get higher frequencies if use an software analog SPI?
zxcv7063 said:Thank you for your reply .
No problem at all, I am happy to help!
zxcv7063 said:Is the SPI in SDK hardware SPI or software analog SPI ?
The SPI peripherals have their own dedicated hardware.
zxcv7063 said:Can I get higher frequencies if use an software analog SPI?
There are no analogue outputs on the nRF52832. If you are asking if bit-banging SPI through GPIOTE toggling could achieve higher than 8 MHz frequency the answer is also no, unfortunately. If you need higher than 8 MHz frequency you will need to use SPIM3 on an nRF52833 or nRF52840 instead.
Best regards,
Karl
OK ! I will go and have a look .
Great!
Please do not hesitate to open another ticket if you should encounter any issues or questions in the future.
Good luck with your development!
Best regards,
Karl
Great!
Please do not hesitate to open another ticket if you should encounter any issues or questions in the future.
Good luck with your development!
Best regards,
Karl
Hi:
Spi and I2C cannot be used together ? The following screenshots:
cannot use peripherals with the same ID ?
How to solve this problem ?
zxcv7063 said:cannot use peripherals with the same ID ?
This is correct, as written in the Shared Resources section of each peripheral's datasheet.
zxcv7063 said:Spi and I2C cannot be used together ?
zxcv7063 said:How to solve this problem ?
You can use these peripherals together so long as you do not use the particular instances with the same ID. In order to use SPI and TWI, you will have to use TWI0 and SPI1, or visa versa, for example. Essentially, you can not use both TWIM1 and SPIM1 concurrently.
Best regards,
Karl
ok! I will try it.
Great!
For future reference, it is best that you open another ticket if you encounter a question or issue that diverges from the original ticket - this keeps the forum tidy, and easy to navigate for other forum users.
Please do not hesitate to open another ticket if you encounter any other issues or questions.
Good luck with your development!
Best regards,
Karl