We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
hi all, I had earlier posted this message, but got no reply. I am using Infineon XC164CS controller. I am testing the register bank switching using a simple program as below.
uwBank_set = 0; //global variable __asm { mov r1,#32 mov r5,#64 } BNKSEL1 = 0x8000; GPT1_vStartTmr(GPT1_TIMER_3); while(!uwBank_set); GPT1_vStopTmr(GPT1_TIMER_3); PSW_BANK1 = 1; /*PSW_BANK1 is a macro for bit 9 of PSW register. Interrupt priority level is 15 and group level is 3.*/
__asm { mov r1,#64 mov r5,#32 } uwBank_set = 1;