cancel
Showing results for 
Search instead for 
Did you mean: 

Knowledge Base Articles

The #pragma Nomac command does not work

ToddD_41
Employee

The #pragma Nomac command does not work

Question: The #pragma NoMac command does not seem to work, am I doing something wrong?

 

Answer:

No, this pragma is broken.  The best way to avoid issues is to not use the MAC (Multiply-Accumulate unit) at all.  If the MAC is needed and it is used in the main code and the ISR, it is recommend that interrupts be disabled any time the MAC is used, to avoid data corruption.

0 Likes
Version history
Revision #:
1 of 1
Last update:
‎Jun 12, 2011 12:31 PM
Updated by:
 
Contributors