Trigonometric function calculation method and device

The embodiment of the invention discloses a trigonometric function calculation method and device. The method comprises the following steps: setting the micro-rotation frequency of each period as the rotation frequency; when the flag bit is a set value, initializing the flag bit; resetting the counte...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: QIN XING, LIN CHENGKAI, HU MINGQUAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention discloses a trigonometric function calculation method and device. The method comprises the following steps: setting the micro-rotation frequency of each period as the rotation frequency; when the flag bit is a set value, initializing the flag bit; resetting the counter to obtain a current value of the counter; when the atan2 is not calculated, two values to be output are initialized, and an input value is set; performing CORDIC operation to obtain two values to be output and an updated input value; when the current value of the counter or the updated input value meets the requirement, determining that the updated input value meets the maximum count required by the set numerical value, and updating the current value of the counter according to the maximum count; and when the current value of the counter exceeds a set threshold value or the updated input value is smaller than eight, setting the flag bit as a set value, and outputting a value to be output. By implementing the meth