This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI and GPIO

I need to port a system from a STM32F407 MCU to the nrf52832.

The old system would continuously poll a SPI slave for 244 bytes of information and after receiving 60 valid transactions of 244 bytes each, it would output all 14,640 bytes to a triple video DAC using GPIO to write 3 parallel bytes at a time.  All this occurred in the main polling loop.

Now looking at the nrf52 DK examples for SPI and BLE,  it looks like the main loop calls power_manage() subroutine that appears to wait until an event occurs.

In my old system, the main loop didn't wait for an event but performed the continuous reading and writing of this ~14.4 Kb of data. For this to occur, it looks like I don't want to call power_manage() subroutine in the main loop. Is this not true?

Related