RM0440 Rev 4 469/2126
RM0440 CORDIC co-processor (CORDIC)
485
This function calculates the cosine of an angle in the range -π to π. It can also be used to
perform polar to rectangular conversion.
The primary argument is the angle θ in radians. It must be divided by π before programming
ARG1.
The secondary argument m is the modulus, m. If m is greater than 1, a scaling must be
applied in software to adapt it to the q1.31 range of ARG2.
The primary result, RES1, is the cosine of the angle, multiplied by the modulus.
The secondary result, RES2, is the sine of the angle, multiplied by the modulus.
Sine
This function calculates the sine of an angle in the range -π to π. It can also be used to
perform polar to rectangular conversion.
The primary argument is the angle θ in radians. It must be divided by π before programming
ARG1.
The secondary argument m is the modulus, m. If m is greater than 1, a scaling must be
applied in software to adapt it to the q1.31 range of ARG2.
The primary result, RES1, is the sine of the angle, multiplied by the modulus.
The secondary result, RES2, is the cosine of the angle, multiplied by the modulus.
Phase
RES2 m ∙ sin θ [-1, 1]
SCALE Not applicable 0
Table 104. Sine parameters
Parameter Description Range
ARG1 Angle θ in radians, divided by π [-1, 1]
ARG2 Modulus m [0, 1]
RES1 m ∙ sin θ [-1, 1]
RES2 m ∙ cos θ [-1, 1]
SCALE Not applicable 0
Table 105. Phase parameters
Parameter Description Range
ARG1 x coordinate [-1, 1]
ARG2 y coordinate [-1, 1]
RES1 Phase angle θ in radians, divided by π [-1, 1]
Table 103. Cosine parameters (continued)
Parameter Description Range