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

MDU unit

hello ,
i am having some problems with the multiplication division unit of the xc878 infineon microcontroller.
i am trying to do a shift operation. the number to be shifted is a 32 bit. lets say i want to do this: 0x00FB00FF >> 16. i would require the MD0,MD1,MD2,MD3 registers. now my problem. i can load the MD0 and MD1 registers but i dont know how to load the MD2 and MD3 registers. please kindly help out.
stephen

Parents
  • Hello,

    thanks for that tip. but unfortunately the C51 Compiler still does the shifting. actually i am using the MDU to make shifting faster but
    if i end up shifting again then it doesnt make much sense. any other idea how this Problem can be solved? actually the datasheet says the MDU can handle 32 bit shift, so i cant seem to understand why it doesnt recognise 32 bit variable.

Reply
  • Hello,

    thanks for that tip. but unfortunately the C51 Compiler still does the shifting. actually i am using the MDU to make shifting faster but
    if i end up shifting again then it doesnt make much sense. any other idea how this Problem can be solved? actually the datasheet says the MDU can handle 32 bit shift, so i cant seem to understand why it doesnt recognise 32 bit variable.

Children