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.
I downloaded the XC161 User Manual V2.1 from Infineon's web site. It does show the SP, STKOV, and STKUN as having their 4 most significant bits tied to '1'. It doesn't make any sense unless it's a typo. I have version 1.1 of that document, and it doesn't have this typo. I can only assume that the author of the XC161 manual used portions of the C16x family manual when compiling the document and missed that particular point. Reporting this typo to mcdocu.comments@infineon.com would be a good idea. - mike
I just reported this to Infineon. The interesting thing is, Keil's simulator ties the 4 significant bits of SP/STKUN/STKOV to 1.
The interesting thing is, Keil's simulator ties the 4 significant bits of SP/STKUN/STKOV to 1. That's what they get for reading the manual!