• Different memtype order necessary?
    Hi I'd like to put a struct typedef struct { U32 a; U8 b[8]; U8 c; } MyType; ... MyType xdata *pMyVar; in XRAM to a particular address section that starts at 0x1000. Therefore...
  • C51 v8.17 saving/restoring all registers in interrupt function with assembly src
    C51 will generate different code for the following function: void timer1 (void) interrupt 3 { second; #pragma asm clr TF1 #pragma endasm } Compiler v8.08 code (edited) USING 0 timer1...
  • Cortex : Saving registers during interrupts
    Hi Want to know if there is a way to instruct the compiler to preserve more than the normal registers (R0-R3, R12, LR, PSR, and PC) during an interrupt. Regards Viktor Bucher
  • How to save context and registers using c programming ?
    Hi, Would like to understand how to save context and registers before entering STOP mode for 8051, and doing a reset, would restore all contexts and registers values ? I can't find any examples...
  • How to save register values before __main function
    Hi, I'm working on a cortex M3 based MCU with Keil. After reset a device related information is stored in R4. This value is cleared after __main and before the main function. Is there a way I can store...