• 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...
  • 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...
  • Simultaneous reading of ADC and the best and fastest way to do it.
    I am writing to see if someone can give me a hand with the ADC on LPC4337 I'm doing a practice in which I have to sample two signals at 200Hz. I need to sample at least 500 points for each cycle...
  • Best way to redirect Serial I/O?
    I have got 3x buffered serial ports working fine, Uart0, Uart1, Bitbanged Uart3. I can transfer chars between them in any order so they are fine. They are named Sin0, Sout0, Sin1, Sout1, Sin3, Sout3...