This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Rotate through carry

How do I implement rotate through carry (RLC A, RRC A) in C (Keil C51) ? This is useful for bit banging operations in 12 bit serial Adc's , serial EEprom's . Now I use the assembly routines as it seems easier to do. any suggestions ?

Parents
  • "Now I use the assembly routines as it seems easier to do. any suggestions ?"

    Keep doing it in assembler!
    Just make the assembler routines callable from 'C' - see the Manual.

    In Keil C51, you could use a bit-addressable variable, and the standard 'C' shift operators - again, see the Manual.

Reply
  • "Now I use the assembly routines as it seems easier to do. any suggestions ?"

    Keep doing it in assembler!
    Just make the assembler routines callable from 'C' - see the Manual.

    In Keil C51, you could use a bit-addressable variable, and the standard 'C' shift operators - again, see the Manual.

Children