Keil Logo

C166: Multiply-Accumulate (MAC) Unit Support


Information in this article applies to:

  • C166

QUESTION

Is the Multiply-Accumulate (MAC) Unit supported by the C166 compiler for the ST10x2xx and Infineon XC16x devices?

If so, where can I find a detailed explanation of the MAC Assembler Instructions?

Are any DSP examples available for the MAC?

ANSWER

A MAC Unit is available in the ST10F2xx, ST10R2xx, and Infineon XC16x devices. It was first supported by intrinsic function in C166 Version 4.02. These functions are documented and explained in Application Note 140: Using the MAC Unit of the ST10-272.

C166 Version 4.24 adds inline assembly support for the ST10 and Infineon devices. The new inline assembly functions are explained in Application Note 172: Using the Extended C166 Inline Assembler.

Several DSP examples are available in the \KEIL\C166\EXAMPLES\XC16X DEVICES\ folder.

Detailed descriptions of the MAC assembler instructions can be found in the Infineon and ST10 Hardware Architure User's Guides.

The Infineon C166S V2 16-Bit Microcontroller User's Guide is available at http://www.infineon.com/cmc_upload/documents/036/812/c166sv2um.pdf.

The ST10 Family Programming Manual is available at http://www.st.com/stonline/books/pdf/docs/5869.pdf.

ST offers AN1442: APPLICATION NOTE Signal Processing with ST10-DSP at http://www.st.com/stonline/books/pdf/docs/8596.pdf. This application note includes some algorithms for the MAC unit.

You may download the latest updates from the Keil Website.


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.