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.

CLA LVF interrupt



Hello,

I'm using CLA type 1

I read there is LVF flag (latched oVerflow flag)

and main CPU can service LVF with appropriate ISR.

If CLA goes to LVF and CPU service interrupt,

is there a way to restore LVF to zero and service new LVF interrupt ??

  • Mauro,

    The CLA should be able to clear this bit, as it is R/W according to the CLA UG.  The following from the UG, but if you are programming in C you should just be able to clear the bit 0 in the MSTF register.  It is not EALLOW protected.

    Latched Overflow Flag
    The following instructions will set this flag to 1 if an overflow occurs: MMPYF32, MADDF32, MSUBF32,
    MMACF32, MEINVF32, MEISQRTF32
    The MSETFLG and MMOV32 MSTF, mem32 instructions can also be used to modify this flag.

    Matt

  • I've tried,

    it works correctly,

    thankyou very much