• the best way to shift
    <Code> #define BITS_TO_ROTATE 2 b=(a>>(8-BITS_TO_ROTATE))+(a<<BITS_TO_ROTATE); After lots of research and experimentation we have determined that this is often the best way as it gives the compiler...
  • Best way to see "optimizations"
    Hello everyone, So, I have a program I'm working on an 8051W core chip using Keil's C51 software and have a loop that looks like this: /* If Pressure2 is saturated low*/ if ((Pressure2>>3)...
  • Best way to control a servo?
    Hi, This might be a little OT but I've been exploring a few new ways of controling a servo. I'm using a 8051 board of my own design, a Hitec HS300BB servo and the control line of the servo is connected...
  • Best way to make 250ns period
    Hello, I need to make a 0.25us period timer for my 1-wire bus. How can this be implemented best? I have my CPU (LPC2378) running at 48MHz. Can this be achieved best with the use of timers? I...
  • Array length changeable during Run - Time
    Hi everyone Does someone know how to change the length of on array during the run time execution? I mean how can I request memory to use it for a array? Is there somthing like malloc()? Thanks...