This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430FR5994: Max. number of samples using LEA

Part Number: MSP430FR5994
Other Parts Discussed in Thread: MSP-DSPLIB

Hello,

I want to know the max. number of q15 samples that can be used in a LEA operation, e. g.: in a MAC operation with the same data vector to get the sum of squares.

In the MSP-DSPLib User Guide I've read that LEA has a 4-byte alignment for all data inputs in msp_mac_q15() method, so, calculating the LEA memory size (4096 bytes) minus the LEA stack size (312 bytes) I would have 3784 bytes at disposal.

And I would think that the max number of  int16_t (_q15) samples available to be used would be 3784 / 2 bytes = 1892 Q15 samples

But, if LEA can't access 2-byte-aligned samples, that number would go to 946 samples, which I think that is the same number of available Q31 samples for vector math, right?

 

Can TI's support confirm that 946 is the maximum number of Q15 (and also Q31) samples that can be used simultaneously in LEA peripheral in a MAC operation like that one listed above?

Thank you and best regards,

-

Rodrigo

**Attention** This is a public forum