MCP3901EV-MCU16 Microchip Technology, MCP3901EV-MCU16 Datasheet - Page 12

BOARD EVAL FOR 2CH ADC MCP3901

MCP3901EV-MCU16

Manufacturer Part Number
MCP3901EV-MCU16
Description
BOARD EVAL FOR 2CH ADC MCP3901
Manufacturer
Microchip Technology

Specifications of MCP3901EV-MCU16

Number Of Adc's
2
Number Of Bits
24
Data Interface
SPI™
Inputs Per Adc
1 Differential
Input Range
±1 V
Voltage Supply Source
Analog and Digital
Operating Temperature
-40°C ~ 85°C
Utilized Ic / Part
MCP3901
Silicon Manufacturer
Microchip
Application Sub Type
ADC
Kit Application Type
Data Converter
Silicon Core Number
MCP3901, PIC24F, PIC24H, DsPIC33, PIC18F86J55
Kit Contents
Board
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
DS51915A-page 12
Because the offset is removed and the rest of the system has a linear response, a
single point calibration method is sufficient to obtain accurate readings.
To compute the instantaneous active power, samples of the current and voltage are
multiplied. To extract the average active power, the instantaneous active power
samples are filtered by two first-order Infinite Impulse Response low-pass filters (IIR
LPF). To obtain the values for the U
to extract the instantaneous U
through the second first-order IIR LPF. To obtain a value proportional with I
square root operation (SQRT) is performed.
The structure of a first-order IIR filter is illustrated in Figure 2-2.
FIGURE 2-2:
The power monitor also has a pulse output for energy measurements and an extra cir-
cuit that is implemented to perform a power-to-frequency conversion. In addition, a
24-bit timer is included to supply accurate timings of the pulse output. Because the
PIC18F25K20 MCU only has a 16-bit timer, a 8-bit Timer0 extended (t0e) register is
included in the software to obtain the desired pulse period.
The power-to-frequency conversion is achieved through the Timer0 interrupt routine.
For better accuracy in power measurement, the power is averaged for a period of time
that is equal to the pulse output. The resulting averaged power value is converted into
three bytes that are written to the t0l, t0h, and t0e global variables. These variables
control the 24-bit timer.
The LCD displays the important parameters U
Power (default). However, more parameters, such as Reactive Power and Apparent
Power, can be displayed with minimum modifications of the firmware. The LCD display
is controlled in the main loop, since it does not require an update at a definite period of
time.
Measurement results are available via UART, as well – the MCU steadily sends U
I
values: 19200 baud, 8-bit of data, 1-bit of stop, none of parity, and no flow control.
The connection between the MCP3901 power monitor reference design and a PC is
simple and secure. The UART-USB converter is located on the upper-right corner of
the PCB and implemented via U4 (PIC18F14K50). And, to prevent exposing the PC to
high-risk voltage, the circuit is galvanically isolated by the rest of the meter through an
optocoupler.
RMS
and Active Power values. The UART connection is configured with the following
x[n]
z
-1
First-Order IIR Filter Structure.
b
b
0
1
2
and I
RMS
2
. For the integrated values, the samples go
and I
RMS
v[n]
RMS
, the acquired samples are multiplied
, I
RMS
, Power Factor, and Active
 2010 Microchip Technology Inc.
a
1
z
-1
RMS
y[n]
y[n-1]
, a
RMS
,

Related parts for MCP3901EV-MCU16