SW006013 Microchip Technology, SW006013 Datasheet - Page 229

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
© 2008 Microchip Technology Inc.
_Q16sinSeries
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16tan
Description:
Include:
Prototype:
Argument:
Return Value:
_Q16tanPI
Description:
Include:
Prototype:
Argument:
Return Value:
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 _Q16sinSeries(_Q16 f, short start, short num,
f
(2
32768. 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
(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
get copied into.
This function returns num, the number of generated sine samples.
This function finds the tangent of a Q16 value.
<libq.h>
_Q16 _Q16tan(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the tangent of x in Q16 format. This value ranges
from-2147483648 to 2147483647.
This function finds the tangent of PI (π) times a Q16 value.
<libq.h>
_Q16 _Q16tanPI(_Q16 x);
x
ranges from -2147483648 to 2147483647.
This function returns the tangent of PI times x in Q16 format. This value
ranges from -2147483648 to 2147483647.
_Q16 *buf);
31
31
31
a fixed point number in Q16 format. The value of this argument
a fixed point number in Q16 format. The value of this argument
-1). The valid range of values for this argument is from -32768 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 Q16 format, which ranges from 0 to
a fixed point number in Q16 format, which ranges from 0 to
a pointer to the buffer where the generated sine samples would
DS51456E-page 225

Related parts for SW006013