• 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? ...
  • efficient packing
    First, I am using 7.5 so it is an old compiler, but that is the way it is. I have a number of bit variables that I am trying to pack into a byte. they are scattered all across the bit area volatile...
  • 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...
  • 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...