Slide 1 Slide 2 Slide 3 Slide 4 Slide 5 Slide 6 Slide 7 Slide 8 Slide 9 Slide 10 Slide 11 Slide 12 Slide 13 Slide 14 Slide 15 Slide 16 Slide 17 Slide 18 Slide 19 Slide 20 Slide 21 Slide 22 Slide 23 Product List
The Ultra Low Power MSP430 Slide 10

The same principle applies when using C code - the status register value stored on the stack needs to be manipulated. However, when writing C there is no direct access to the stack and it is not always known in what context the C compiler saved the code. In this case, all of the MSP430 C compiler vendors provide an intrinsic function to allow this stack manipulation. Shown here is the format for the function for the IAR compiler which is the compiler included with the Kickstart development tools. Other compilers have a different format and their appropriate documentation should be referenced to determine their exact format. Nevertheless, the principle is the same in C or Assembly and across all the compilers.

PTM Published on: 2008-04-03