SW006014 Microchip Technology, SW006014 Datasheet - Page 220

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
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 SW006014