> > Question 2.
> >    Why is `eint' placed after second `mov' instruction?
> >    It is possible to place it between two `mov's to decrease interrupt
> >    desable time.
>
> i'd say so, but it's not obvious for someone else that reads the code
> (or yourself after two weeks ;-) . i'd make some comments in the code
> when using such tricks.

Extract from MSP430F1xx (and 4xx) User Guide page 3-40 which might be helpful:

"The instruction following the enable interrupt instruction (EINT) is always
executed, even if an interrupt service request is pending when the interrupts
are enable."







Reply via email to