I'm receiving packets via an SPI slave of variable length. My wish is to enter low power mode until the packet completes.
I've setup the DMA as 'repeat single transfer' mode triggering on the SPI rx with a maximum buffer length in the DMAxSZ register. The MSP430 is interrupted by an outside source when the last character is complete. Everthing works very well; all data is received via the SPI and stored properly in the reception buffer.
My problem is that I don't know how many characters were received. The DMA module knows both the number of characters received and the next position in the buffer, but no matter how hard I twist his skinny little pins, it won't give me the information.
Has anyone any ideas?