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

I NEED A SUDDEN REPLY

DEAR TO ALL, I AM DEALING WITH C8051F120 MICROCONTROLLER.UTILIZING 16 X 16 MAC ENGINE OPERATION.I AM DOING ASSEMBLY LANGUAGE PROGRAMMING USING THIS MICROCONTROLLER FOR MULTIPLICATION. IS IT POSSIBLE TO MULTIPLY TWO UNSIGNED 16 BIT INPUTS?
IF YES, THEN HOW ?

Parents
  • You are right - the Datasheet says what the MAC0RS bit does, but omits to tell you where it is!

    from the datasheet:
    Bit 5: MAC0SC: Accumulator Shift Control.
    When set to 1, the 40-bit MAC0 Accumulator register will be shifted during the next SYSCLK cycle. The direction of the shift (left or right) is controlled by the MAC0RS bit.
    This bit is cleared to ‘0’ by hardware when the shift is complete.
    Bit 4: MAC0SD: Accumulator Shift Direction.
    This bit controls the direction of the accumulator shift activated by the MAC0SC bit.
    0: MAC0 Accumulator will be shifted left.
    1: MAC0 Accumulator will be shifted right.

    It should be obvious that MAC0RS and MAC0SD is the same as mentioned in a former post.

    Erik

Reply
  • You are right - the Datasheet says what the MAC0RS bit does, but omits to tell you where it is!

    from the datasheet:
    Bit 5: MAC0SC: Accumulator Shift Control.
    When set to 1, the 40-bit MAC0 Accumulator register will be shifted during the next SYSCLK cycle. The direction of the shift (left or right) is controlled by the MAC0RS bit.
    This bit is cleared to ‘0’ by hardware when the shift is complete.
    Bit 4: MAC0SD: Accumulator Shift Direction.
    This bit controls the direction of the accumulator shift activated by the MAC0SC bit.
    0: MAC0 Accumulator will be shifted left.
    1: MAC0 Accumulator will be shifted right.

    It should be obvious that MAC0RS and MAC0SD is the same as mentioned in a former post.

    Erik

Children