Part Number: MSP430F5529
Tool/software: Code Composer Studio
Hello all,
I have a question regarding the algorithm used to increase the PMMCORE levels detailed in the 5529 User's Guide.
SVSMHCTL = SVSHE + SVSHRVL0 * level + SVMHE + SVSMHRRL0 * level;
According to the user's guide, the Reset value of SVSHRVL and SVSMHRRL are 0h. Same goes for PMMCOREV and all the supervisors/monitors.
If we want to increase the SVS and SVM levels one at a time, the variable level would begin at 1(unsigned int).
On the msp430.h documentation, SVSHRVL0 is the first bit of the 2 bits that compose SVSHRVL. How does multiplying 0 by an unsigned int value of 1, result in 1? Or this has to do with some abstraction behind the scenes done by CCS that knows the intention is to set the bit.