XC878-16FF/13FF code bank switching differences

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Not applicable
I'm using the D-Flash on the XC878-16FF with 64k Flash. There I have to switch to code bank 2 (MEX1=2) to run functions from XRAM or the Boot ROM.

Because the XC878-13FF only has 52k of flash the Boot ROM and XRAM can be blended into the 16bit code space and no banking is required there. I'd like to write compatible code, my question is, what happens on the 13FF if I set MEX1=2. Does the register even exist there, is it ignored?

I'd prefer to spare myself a lot of ifdefs and just leave the bank switching stuff in the code, so I hope the register is a) safe to write to and b) doesn't have any effect on the 13FF.

Figure 3-2 in the XC878 UM indicates (to my understanding) that the 13-FF doesn't have banking. But I find no clarification of this. Maybe I looked in the wrong places.
0 Likes
0 Replies