MCP3909RD-3PH3 Microchip Technology, MCP3909RD-3PH3 Datasheet - Page 34

no-image

MCP3909RD-3PH3

Manufacturer Part Number
MCP3909RD-3PH3
Description
REF DESIGN FOR MCP3909 W/18F2520
Manufacturer
Microchip Technology

Specifications of MCP3909RD-3PH3

Main Purpose
Power Management, Energy/Power Meter
Utilized Ic / Part
MCP3909, PIC18F2520, PIC18F4550
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Secondary Attributes
-
Embedded
-
Primary Attributes
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
MCP3909 / dsPIC33F 3-Phase Energy Meter Reference Design
DS51723A-page 34
The energy pulse processing program only begins when the level is close to outputting
pulse level. To simplify the process and shorten the ISR execution time, a counter is
used in place of the energy accumulation function for each pulse and to determine if a
pulse will be outputted. When the count is greater than the threshold of pulse output,
an energy pulse will be outputted, and the appropriate amount of energy will be sub-
tracted from the energy accumulating register. Output toggling will then be processed.
Once the width of the output pulse exceeds 80 ms, the pulse output will be turned off.
The program flow chart is shown in Figure 3-4.
FIGURE 3-4:
IC1 Interrupt Service Routine.
ICI Interrupt Service
Call MCP3909 data
reactive energy?
falling edge of
active energy?
active energy?
active energy?
rising edge of
falling edge of
rising edge of
read program
Processing
Processing
Processing
Processing
routine
Return
No
No
No
No
Yes
Yes
Yes
Yes
Update pulse width
counter, if pulse
width > 80 ms, toggle
pulse output level.
End pulse output
process.
Update pulse width
counter, if counter >
flip threshold, output
pulse and update
energy accumulation
register.
Update pulse width
counter, if pulse
width > 80 ms, toggle
pulse output level.
End pulse output
process.
Update pulse width
counter, if counter >
flip threshold, output
pulse and update
energy accumulation
register.
© 2009 Microchip Technology Inc.

Related parts for MCP3909RD-3PH3