Keil Logo

C51: 80C517: Using the 517 Multiply / Divide Unit in Interrupts


Information in this article applies to:

  • C51 Version 5.50
  • C51 Version 6.00 Beta
  • C51 Version 6.00

SYMPTOMS

Can I use the high-speed multiply/divide unit of the Infineon 80C517 in my main program and in an interrupt routine?

CAUSE

No. The 517 multiply/divide unit does not allow recursive use of the MDU indexes. The overhead of saving and restoring these registers would eliminate the advantage of the MDU. Therefore, the MDU may be used in the main program or an interrupt, but not both.

RESOLUTION

If you must use the MDU in an interrupt and in your main code, you must disable interrupts in your main code when you multiply and divide, and restore interrupts when your math routines are finished. This ensures that interrupts do not run while you access the MDU of the 517.

SEE ALSO


Last Reviewed: Thursday, February 25, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.