• Code efficiancy
    Hi all, My code is based on C and I have a lot of cases where I assign a value to a variable. Is it more efficiency to just place the value or first to check if the variable already has this value? ...
  • Looking for efficiency
    I am using small memory model and I need to write data to an absolute memory location (0xC002), so I'm using the MVAR macro: #define DISPLAY_DATA MVAR(unsigned char, 0xC002) void main(void) { DISPLAY_DATA...
  • Packed structure is not packed
    I would like to have a packed structure (because I'm gonna store those data in flash, and need it as small as possible). I'm using Keil 5.22 on nRF51822. typedef struct { uint16_t packedValue;...
  • Code Banking - Efficiency Question
    I am looking at a development project that will require code banking. The target processor will most likely be the Triscend E5 family. I am wondering what effect code banking has on overall efficiency...
  • Efficient RCap calculations
    Hello, I'm using timer 2 in capture mode to measure the time between to interrupts (T2CON = 0x09). The interrupts are triggered by a 1->0 transient on pin P1_1 (so I'm using T2EX ). I need to calculate...