
При использовании микроконтроллеров во встраиваемых системах различного назначения возникает необходимость вычисления элементарных функций sin(x) и cos(x). Решение этой задачи с помощью стандартной библиотеки функций языка С приводит к существенному росту программного кода и времени вычислений для микроконтроллеров с ограниченными вычислительными возможностями. В этом случае альтернативой могут служить собственные подпрограммы на основе таблично-алгоритмического метода, реализуемого с помощью целочисленной арифметики микроконтроллера. Однако преимущества таблично-алгоритмического метода проявляются в том случае, если поправки к табличным значениям функций вычисляются с помощью простейших методов аппроксимации. Негативным следствием применения указанных методов является значительный объем табличных значений функций, которые требуется хранить в памяти микроконтроллера. По этой причине реализация таблично-алгоритмического метода затрудняется. В настоящей работе предлагается алгоритм таблично-алгоритмического метода, который по сравнению с аналогом обеспечивает требуемую точность и позволяет сократить в 8 раз объем табличных значений функций. Алгоритм может найти применение, например, при создании различных устройств со сверхнизким энергопотреблением на базе 16-разрядных микроконтроллеров MSP430 без аппаратного умножителя.
When using microcontrollers and embedded systems for various purposes there is a necessity of calculation of elementary functions sin(x) and cos(x). The solution to this problem using standard С-library functions with leads to substantial growth of code and time of calculations for microcontrollers with limited computing power. In this case, the alternative can serve as your own routines based table-algorithmic method, which is implemented using integer arithmetic microcontroller. However, the advantages of table-algorithmic method appear in the case, if the amendments to the tabular values of the functions are computed using the simplest methods of approximation. A negative consequence of use of the mentioned methods is a significant amount of tabular values of the functions that you want to store in memory of the microcontroller. For this reason, the implementation of a table-algorithmic method difficult. In the present paper an algorithm is proposed table-algorithmic method, which in comparison with the similar provides the required accuracy and reduces to 8 times the amount of the tabular values of functions. The algorithm can find application, for example, the creation of different devices with ultra low power consumption-based 16-bit MSP430 microcontrollers without hardware multiplier.
ФУНКЦИЯ SIN(X), COS(X), ТАБЛИЧНО-АЛГОРИТМИЧЕСКИЙ МЕТОД, ЦЕЛОЧИСЛЕННЫЙ АЛГОРИТМ, МИКРОКОНТРОЛЛЕР, ПОГРЕШНОСТЬ, МОДЕЛЬ, THE FUNCTION SIN(X)
ФУНКЦИЯ SIN(X), COS(X), ТАБЛИЧНО-АЛГОРИТМИЧЕСКИЙ МЕТОД, ЦЕЛОЧИСЛЕННЫЙ АЛГОРИТМ, МИКРОКОНТРОЛЛЕР, ПОГРЕШНОСТЬ, МОДЕЛЬ, THE FUNCTION SIN(X)
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
