![]() |
MKM34Z256VLx7 Bare Metal Software Drivers
R4.1.6
Reference Manual
|
This example shows typical use of the MMAU module for sine(x) computing. The sine(x) function is implemented using a 13th order polynomial approximation derived using a Taylor Series. Refer to matlab script for more details.
The precision of the sine(x) matlab script has been compared with standard sin(x*pi) matlab function. The precision of approximated sine(x) function is in range +/-6.8e-10 as shown in the following figure.
The matlab script has been rewritten using 64-bit mul_dl, maca_dl and d_mula_l operations supported by the MMAU module.
The MMAU module can provide a several-fold increase of computation performance for high-dynamic range calculations versus the most common microcontroller cores, for example ARM Cortex®-M0+.
IAR EWARM 7.40.7 | KEIL uVision 5.15 | CrossWorks 3.6 | ATOLLIC TrueStudio 5.3.0 | Kinetis Design Studio 3.0.0 |
---|---|---|---|---|
♦ | ♦ | ♦ | ♦ | ♦ |