SW006013 Microchip Technology, SW006013 Datasheet - Page 220

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51456E-page 216
_Q15sin
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15sinPI
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15sinSeries
Description:
Include:
Prototype:
Argument:
Return Value:
This function finds the sine of a Q15 value.
<libq.h>
_Q15 _Q15sin(_Q15 x);
x
2
This function returns the sine of x in Q15 format. This value ranges
from -27573 to 27573.
This function finds the sine of PI (π) times a Q15 value.
<libq.h>
_Q15 _Q15sinPI(_Q15 x);
x
2
This function returns the sine of PI times x in Q15 format. This value
ranges from -32768 to 32767.
Generates the sine series with the given normalizing frequency f and
the given number of samples num starting from start. Stores the
result in buffer buf.
<libq.h>
short _Q15sinSeries(_Q15 f, short start, short num,
f
(2
16384. This argument represents the Normalizing frequency.
start a fixed point number in Q16 format, which ranges from 0 to
(2
This argument represents the Starting Sample number in the Sine
Series.
num a fixed point number in Q16 format, which ranges from 0 to
(2
This argument represents the Number of Sine Samples the function is
called to generate.
Note: num should not be more than 16383 for dsPIC and 32767 for PIC
devices.
buf a pointer to the buffer where the generated sine samples would
get copied into.
This function returns num, the number of generated sine samples.
15
15
_Q15 *buf);
31
31
31
-1. The value of this argument ranges from -32768 to 32767.
-1. The value of this argument ranges from -32768 to 32767.
a fixed point number in Q15 format, which ranges from -2
a fixed point number in Q15 format, which ranges from -2
-1). The valid range of values for this argument is from -16384 to
-1). The valid range of values for this argument is from 1 to 32767.
-1). The valid range of values for this argument is from 1 to 32767.
a fixed point number in Q15 format, which ranges from 0 to
© 2008 Microchip Technology Inc.
15
15
to
to

Related parts for SW006013