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

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
3.5
© 2009 Microchip Technology Inc.
READING A/D DATA OF THE MCP3909 DEVICE
All three MCP3909 devices use the same clock source and reset signal, so all 6 A/D
channels of the 3 MCP3909 devices are synchronous. Only a single Data Ready (SDO)
signal of any of the MCP3909 device is required to read A/D data of the 3 phases in
turn. This module is invoked by IC1 interrupt triggered by the "data ready" signal on the
SDO of the MCP3909 device. IC1 is set to generate an interrupt for every two falling
edges. Therefore, only one of the two sampling data of the MCP3909 device is
read.The flow of reading the MCP3909 device's data is as follows:
• Retrieve all values of 3-phases, both current channel and voltage channel data.
• Accumulate the active power of each phase. On every other interrupt, the current
• Update the pointer of sampling array and length of sampling data. If the length of
FIGURE 3-5:
Bits 0-15 of each phase data are voltage channel data, bits 16-31 are current
channel data
and voltage values are stored into RAM in the cyclic sampling array
sampling data is 3-line cycles long, set the sampling complete flag, and then the
calculation function Calculate() will be called by the main flow to start computing
all corresponding parameters.
Flow Chart of Read A/D Data.
Select phase A of
The MCP3909 device,
clear SPI flag
Read MCP3909 data
Read phase A data
and accumulate active
energy of phase A
Read phase B data
and accumulate active
energy of phase B
Read phase C data
and accumulate active
energy of phase C
Even count
data read?
End
Yes
No
No
Update array pointer,
sample pass count
Read phase A data,
accumulate active
energy of phase A
and save data to array
Read phase A data,
accumulate active
energy of phase A
and save data to array
Read phase A data,
accumulate active
energy of phase A
and save data to array
flag and data length
Set data sampling
complete flag
End of sampling of
this cycle?
y
Firmware
DS51723A-page 35

Related parts for MCP3909RD-3PH3