This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to set system stack other than 0xFC00?

Hi,
All the SP, STKOV, and STKUV's highest 4 bits are masked to '1'. Does that mean those registers have to be 0xFxxx only? May I change the system stack to somewhere else, say 0xc200?

Thanks a lot.

Parents
  • I'm not sure which manual you are referring to. From your original question I got the idea that you meant the C16x family of microcontrollers. Those indeed support system stack only in 0xF000-0xFFFF area.
    But from this question
    why does the manual say "the XC161 supports a system stack up to 64KBytes"? - at chapter 4.7.5
    I get the impression that you are intrested in the XC161 microcontroller. The two families C16x and XC16x are different. They use different CPU cores, and XC16x's CPU is an improved version of C16x's CPU. The newer version is faster and more flexible, while maintaining a great degree of compatibility with the previous version. Among other things, XC16x's CPU core does support 64K bytes of system stack.

    - mike

Reply
  • I'm not sure which manual you are referring to. From your original question I got the idea that you meant the C16x family of microcontrollers. Those indeed support system stack only in 0xF000-0xFFFF area.
    But from this question
    why does the manual say "the XC161 supports a system stack up to 64KBytes"? - at chapter 4.7.5
    I get the impression that you are intrested in the XC161 microcontroller. The two families C16x and XC16x are different. They use different CPU cores, and XC16x's CPU is an improved version of C16x's CPU. The newer version is faster and more flexible, while maintaining a great degree of compatibility with the previous version. Among other things, XC16x's CPU core does support 64K bytes of system stack.

    - mike

Children