DSPIC33FJ128GP706A-I/PT Microchip Technology, DSPIC33FJ128GP706A-I/PT Datasheet - Page 31

IC DSPIC MCU/DSP 128K 64-TQFP

DSPIC33FJ128GP706A-I/PT

Manufacturer Part Number
DSPIC33FJ128GP706A-I/PT
Description
IC DSPIC MCU/DSP 128K 64-TQFP
Manufacturer
Microchip Technology
Series
dsPIC™ 33Fr

Specifications of DSPIC33FJ128GP706A-I/PT

Program Memory Type
FLASH
Program Memory Size
128KB (128K x 8)
Package / Case
64-TFQFP
Core Processor
dsPIC
Core Size
16-Bit
Speed
40 MIPs
Connectivity
CAN, I²C, IrDA, LIN, SPI, UART/USART
Peripherals
AC'97, Brown-out Detect/Reset, DMA, I²S, POR, PWM, WDT
Number Of I /o
53
Ram Size
16K x 8
Voltage - Supply (vcc/vdd)
3 V ~ 3.6 V
Data Converters
A/D 18x10b/12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Product
DSCs
Data Bus Width
16 bit
Processor Series
DSPIC33F
Core
dsPIC
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
53
Data Ram Size
16 KB
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52713-733, 52714-737, 53276-922, EWDSPIC
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DM240001, DV164033
Minimum Operating Temperature
- 40 C
Core Frequency
40MHz
Core Supply Voltage
3.3V
Embedded Interface Type
I2C, SPI, UART
No. Of I/o's
53
Flash Memory Size
128KB
Supply Voltage Range
3V To 3.6V
Rohs Compliant
Yes
Package
64TQFP
Device Core
dsPIC
Family Name
dsPIC33
Maximum Speed
40 MHz
Operating Supply Voltage
3.3 V
Interface Type
CAN/I2C/SPI/UART
On-chip Adc
36-chx10-bit|36-chx12-bit
Number Of Timers
9
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
876-1001 - DSPIC33 BREAKOUT BOARD
Eeprom Size
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DSPIC33FJ128GP706A-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
© 2009 Microchip Technology Inc.
3.3.3
After the data set of either a voltage or current signal (of each phase), has been DFT
transformed, the voltage or current magnitudes of the different harmonics can then be
calculated. The total effective voltage or current (RMS) can be obtained by further
calculaton, by simply combining the results of the individual harmonics (including the
fundamental or the 1
Computing the magnitude of the voltage or current is accomplished by function
ComputeMagnitude(). The result, called amplitude, is a long integer, and is the
squared magnitude of voltage or current. To speed up the computation, fixed-point
operation is used. The ComputeMagnitude() routine is written in assembly language.
After the magnitude is computed, there is an adjustment process which is based on a
floating-point operation. The limited number of computations will not affect the
operation speed, and will instead greatly improve precision.
Parameter ratio1 in the firmware is a coefficient related to the number of sampling
points (see Equation 2-2). Division is accomplished by a simple shift operation in
firmware. If the sampling cycle is not a power of 2, it cannot be accomplished by
shifting. However, division by shifting can be accomplished by multiplying a compen-
sating coefficient Coeff.data.linear.V_channel[]. This is the calibration coefficient for
ratio errors.
Since the current signal has a wide dynamic range, for small signals, the ADC output
data range is small and is limited by DSP's bit resolution (16-bit MCU). If division by
shift is used in the same way that is used for large signals in computation, precision
may be affected. Therefore, for computing magnitudes of small signals, ComputeS-
mallMagnitude() function is used instead. This function is similar to ComputeMagni-
tude(), the only difference being that the shift length is shortened in division operation,
and will be compensated during data adjustment. The computation precision will not be
affected as the data adjustment process uses float-point operation.
3.3.4
Computing harmonics is accomplished in assembly language, by the function Com-
puteHarmonic(). The computation is based on Equation C-62, in Appendix
C. “Power Calculation Theory”. The result is the ratio of the magnitude of K-th
harmonic to fundamental magnitude, and is given in a percentage.
3.3.5
Computing power is accomplished in assembly language by the function Compute-
Power() based on Equation C-39 and Equation C-40 in Appendix C. “Power Calcu-
lation Theory”.
After the ComputePower() function is complete, an adjusting process for computed
power is required. First, the computed result is adjusted according to the gain of current
amplifier. Then the calibrating coefficient ratio2 is determined according to present
number of sampling points.
Additional compensation to the power calculation is required, for phase compensation.
This compensation is based on the present load current. The difference between signal
frequency and the central frequency is also taken into consideration. Consequently
computed power is compensated.
Note:
Calculating RMS Voltage/Current
Calculating Harmonics
Calculating Power
Since the output of ComputeHarmonic() is the squared harmonic
magnitude, extraction of square root is needed in computation. The
calculated harmonic content is stored as a fixed-point number, and the
actual value stored is the harmonic content multiplied by 10.
ST
harmonic).
Firmware
DS51723A-page 31

Related parts for DSPIC33FJ128GP706A-I/PT