• A RET instruction does not return correctly (problem only with flash) !!!
    I have a problem in the context switch function of an OS. the switch function saves the context of the task that is running. Then, it sets the appropriate registers and need to jump to the task_function...
  • return value of subroutines and SCXT
    Hi, i am wondering how to give back a value of a subroutine to the calling routine and use a register when using scxt. example: SCXT CP,#0FC40h NOP CALLS something CMP R10, ONES...
  • Return instruction of CALLA
    Hi All I'm looking for an issue in a code written in C and I think it might be due to the compiler. For this SW I'm using c166 V3.05a (an old legacy code). The compiler calls one function with...
  • XC161 bootloader
    Is there anyone who has any experience with writing a boot loader for the XC161? Memory map is a little different than previous family members. Seems like primairy code is loaded from E00004H to E00023H...
  • Bootloader Introduction
    Hi, I am a beginner in embedded programming. Anyway, I was hoping if you could point me to the right direction of what I would like to do: 1. I want to learn how to do a boot loader program (a simple...