Hi all,
I want to test power consumption of data packets reading from SPI to RAM using PPI. But i'm not sure that can RAM act as a peripheral of PPI... So, can i use PPI for reading of data packets from SPI to RAM?
Thanks in advance --s
Hi all,
I want to test power consumption of data packets reading from SPI to RAM using PPI. But i'm not sure that can RAM act as a peripheral of PPI... So, can i use PPI for reading of data packets from SPI to RAM?
Thanks in advance --s
Hi
Thanks you for your question.
You can not use PPI to direct data packets from SPI to RAM because, as you suspected, the RAM is not recognized as a peripheral. There are however other ways to do it. On nRF51 (either nRF51422 or nRF51822), there are two master SPIs and one slave SPI. The master SPIs contain two byte register to receive incoming data and that can not be directed directly to RAM, you must use CPU to do it. For the SPI slave, you can use EasyDMA to direct incoming SPI slave data directly to RAM.
For our latest nRF52832 chip, EasyDMA can be configured both for SPI slave and SPI master to directly feed data to and from RAM.
What chip are you developing on? What SDK version are you using?