ing and directly drives a LCD with 7
digits display plus announciators
nProgramable method of energy addi-
tion
nPin compatible with SAMES SA9109A
n4 externally selectable on-chip tariff
registers
nAn additional total energy register
nMeets the IEC 521/1036 Specification
requirements for Class 1 AC Watt hour
meters
DESCRIPTION
The SAMES SA9109B Single Phase bidirectional energy metering integrated circuit has an integrated Liquid Crystal Display (LCD) driver for a 7 digit (7 segment)
display as well as 4 multiple tariff registers.
The SA9109B performs the active power
calculation.
The method of calculation takes the power
factor into account.
Two methods of energy measurement are
available. One method results in energy
values which take the direction of energy
flow into account, a summation of signed
integers. The alternative method measures energy regardless of the direction of
energy flow, a summation of absolute
values. The required measurement
method may be selected when writing to
the RAM of the device.
SA9109B
nOptical interface for electronic reading
according to IEC1107 Mode D
nPulse output for calibration
nPower consumption rating below 40mW
nAdaptable to different types of current
sensors
nOperates over a wide temperature
range
nPrecision voltage reference on-chip
nProtected against ESD
PIN CONNECTIONS
PCLK
PDTA
PGM
PB
SR[0]
SR[1]
VBA
V
SS
CIP
CIN
COP
DR -0125 2
OSC2
S[13]
SDO
OSC1
38
39
373536
40
41
42
43
44
1
2
3
4
5
6
10911
IIN
IVN87CON
IIP
S[8]
S[11]
S[10]
S[9]
S[12]
34
12
VREF
GND
S[6]
S[7]
30
313233
29
28
S[5]
27
S[4]
26
S[3]
25
S[2]
24
S[1]
23
S[0]
22
COFF
21
R[3]
20
R[2]
19
R[1]
18
R[0]
16
151413
17
DD
CPIP
CPON
V
CPOP
CPIN
Package: PLCC-44
4482 PDS039-SA9109B-001 REV. B 13-06-1997
1/16
Page 2
SA9109B
DESCRIPTION (continued)
The measured energy is displayed in kiloWatt hours (kWh). The SA9109B is capable
of driving a display having a resolution of 1/10 kWh.
This innovative universal energy metering integrated circuit is ideally suited for energy
measurement in single phase systems.
The SA9109B integrated circuit is available in a 44 pin plastic leaded chip carrier (PLCC-
Supply VoltageVDD -V
Current on any pinI
Storage TemperatureT
Operating TemperatureT
PIN
STG
O
SS
-0.36.0 V
-150 +150 mA
-40+125 °C
-40 +85 °C
* Stresses above those listed under “Absolute Maximum Ratings” may cause perma-
nent damage to the device. This is a stress rating only. Functional operation of the
device at these or any other condition above those indicated in the operational
sections of this specification, is not implied. Exposure to Absolute Maximum Ratings
for extended periods may affect device reliability.
ELECTRICAL CHARACTERISTICS
(V
= 2.5V, VSS = -2.5V, over the temperature range -10°C to +70°C#, unless otherwise
DD
specified.)
ParameterSymbol MinTypMaxUnit Condition
Operating temperature
range #T
Supply Voltage: PositiveV
Supply Voltage: NegativeV
Supply Current: PositiveI
Supply Current: NegativeI
DD
SS
DD
SS
-25+85°C
o
2.252.75V
-2.75-2.25V
710mA
710mA
Current Sensor Inputs (Differential)
Input Current RangeI
-25+25µA
II
Voltage Sensor Inputs (Asymmetric)
Input current RangeI
LCD backplane VoltageV
LCD segment VoltageV
IV
-25+25µA
B
S
VDD &
V
1/3V
2/3V
SS
DD
DD
VR[0] ... R3]
S[0] ...S[15]
V
Pin SDO
Pulse ratef
Pulse widtht
Output Low VoltageV
Output High VoltageV
Extended Operating Temperature Range available on request
V
MAX
MIN
1.15.5Vmode
50nAPower down
Note 1: At rated conditions
SS
SS
PIN DESCRIPTION
PinDesignationTypeDescription
11GNDSupplyGround
17V
DD
3VSSSupplyNegative Supply Voltage sense
2VBASupplyBattery back-up. Negative Supply Voltage
8IVNAnalog inAnalog input for Voltage
10IINAnalog inAnalog input for Current
9IIPAnalog in
38OSC1InputConnections for crystal or ceramic resonator
37OSC2Output(OSC1 = Input; OSC2 = Output)
18R[0]OutputLiquid crystal display (LCD) backplane drivers
19R[1]Output
20R[2]Output
21R[3]Output
4/18
SupplyPositive Supply Voltage sense
sames
Page 5
SA9109B
PIN DESCRIPTION (continued)
PinDesignation TypeDescription
23S[0]OutputLiquid crystal display (LCD) segment drivers
24S[1]Output
25S[2]Output
26S[3]Output
27S[4]Output
28S[5]Output
29S[6]Output
30S[7]Output
31S[8]Output
32S[9]Output
33S[10]Output
34S[11]Output
35S[12]Output
36S[13]Output
22COFFOutputConnection for all unused LCD segments, to ensure
off status
7CONAnalogConnections for outer loop capacitor of A/D
6COPAnalogconverter (Current)
5CINAnalogConnections for inner loop capacitor of A/D
4CIPAnalogconverter (Current)
16CPIPAnalogConnections for inner loop capacitor of A/D
15CPINAnalogconverter (Voltage)
14CPOPAnalogConnections for outer loop capacitor of A/D
13CPONAnalogconverter (Voltage)
12VREFAnalogConnection for reference current setting resistor
39SDOOpen drain Pulse rate output. Serial data output when PB is low
44SR[0]InputControl for tariff register selection (on-chip pull-up)
1SR[1]InputControl for tariff register selection (on-chip pull-up)
43PBInputPush Button: Display select/start serial data
transmission on SDO (on-chip pull-up)
42PGMInputProgramming Mode. It is recommended that pin PGM be
connected to V
transients or noise
41PDTAInputProgramming Data (on-chip pull-down)
40PCLKInputProgramming Clock
via a 470Ω resistor to guard against
DD
sames
5/18
Page 6
SA9109B
FUNCTIONAL DESCRIPTION
The SA9109B is a CMOS mixed signal Analog/Digital integrated circuit, which performs
power calculations across a power range of 1000:1, to an overall accurancy of better than
Class 1. An on-chip LCD driver directly drives a 7 digit (7 segment) LCD display. Also
included on-chip, are 4 tariff registers externally selectable for multi-tariff energy metering
applications and a fifth register which retains the total energy consumption.
The integrated circuit includes all the required functions such as two oversampling A/D
converters for the voltage and current sense inputs, power calculation and energy
integration. Offset is eliminated through the use of internal cancellation procedures.
1.Power Calculation
In the Application Circuit (Figure 1), the voltage drop across the shunt will be
between 0 and 16mV
is converted to a current of between 0 and 16µA
(0 to 80A through a shunt resistor of 200µΩ). This voltage
RMS
, by means of resistors R1 and
RMS
R2.
The current sense input saturates at an input current of ±25µA peak.
The voltage level from the mains is divided down through a divider to 14V.This
voltage is converted to a signal current of 14µA
into the voltage sensor input.
RMS
A pulse rate output for calibration purposes is available on SDO (Pin 39), the pulse
rate being proportional to the active energy consumption.
The integrated anti-creep function ensures no metering when no line current is
present.
2.Analog Input Configuration
The input circuitry of the current and voltage sensor inputs are illustrated below.
These inputs are protected against electrostatic discharge through clamping
diodes.
The feedback loops from the outputs of the amplifiers AI and AV generate virtual
shorts on the signal inputs. Exact duplications of the input currents are generated
for the analog signal processing circuitry.
6/18
sames
Page 7
IIN
CURRENT
SENSOR
INP U TS
IIP
IV N
SA9109B
V
DD
V
SS
V
DD
V
SS
V
DD
A
I
VOLTAGE
SENSOR
INP U T
DR-01254
V
SS
GND
A
V
3.LCD Driver
The SA9109B has an on-chip LCD driver capable of driving a 4 backplane, 7 digit
(7 segment) display, as well as 6 announciators.
The backplane repetition frequency is approximately 90Hz.
The most significant digit is addressed by columns S[13] and S[12] and the least
significant digit by S[1] and S[0]. Announciators for the 4 tariff registers, the total
register and energy direction are available on the `h' segment of the 6 least
significant digits. The display segments are addressed via the column outputs given
in the table below:
sames
7/18
Page 8
SA9109B
LCD Segment Address Table
DigitColumnR[0]R[1]R[2]R[3]
-1
10
S[0]Totalcba
LSDS[1]degf
0
10
S[2]T4cba
S[3]degf
1
10
S[4]T3cba
S[5]degf
2
10
S[6]T2cba
S[7]degf
3
10
S[8]T1cba
S[9]degf
4
10
S[10]Dircba
S[11]degf
5
10
S[12]hcba
MSDS[13]degf
LCD Layout
The LCD display is given in the diagram below:
8/18
4
f
..
g
ec
b
h
d
S[ 12]S[ 13]
DR-01255
sames
6
.
T4
S[3]
COLUMNS
.
S[2]
.
TOTAL
S[1]
R[3]
7
.
R[2]
R[1]
R[0]
BACKPLANES
S[0]
Page 9
The kWh values of the LCD display digits, are given in the table below. The
resolution of the Least Significant Digit is normally programmed to 0.1kWh:
10510410310210110010
-1
kWh
4.Device Programming
The SA9109B contains on-chip registers which enables the meter manufacturer to
store various data:
Slope Adjustment
The slope of the device may be adjusted by programming a slope constant (KS) into
the device during calibration. The output frequency at SDO (fP) is calculated by
means of the following formula:
fP = 11.16
FOSC * II .IV * 40062.5
*
3.5795MHz I
2
R
K
S
Where
FOSC= Oscillator frequency (2MHz ...... 4MHz)
I
I
I
V
I
R
K
S
= Input current for current sensor input (16µA at rated line current)
= Input current for voltage sensor input (14µA at rated line voltage)
= Reference current (typically 50µA)
= Slope constant (1025 ... 16384))
(The default value is 11389)
SA9109B
By changing the slope of the device the resolution of the LCD, together with the
pulse rate on SDO may be changed by up to an order. The block diagram below
illustrates the display update rate.
Programmable slope divider
40062.5*
Pulses / s
D R -01256
1 / K
s
1 / 64
Display
Incr em ent
f
p
* At rated conditions
The display is incremented after every 64th pulse on SDO.
sames
9/18
Page 10
SA9109B
Display resolution
From the above formula for fP it can be derived that the slope constant, Ks, is given
by the following expression:
626 * 3600 * 1000 * E
KS =
VL * I
L
kWL
Where
E
kWh
V
L
I
L
= energy for 1 display increment in kWh
= rated line voltage
= rated line current
This formula is valid only if 16µA
current (IL) and 14µA
flows into the voltage sense input for rated line voltage (VL).
RMS
flows into the current sense input for rated line
RMS
Offset Adjustment
The precision of this device does not require any offset adjustment for Class 1
metering. This facility has been provided to compensate for poor PCB layout or
circumstances requiring precision well beyond a Class 1 rating.
The offset of the device may be adjusted by programming a different offset into the
device during calibration. To calculate the offset the following procedure should be
followed:
Measure the linearity error at the current where offset correction is needed.
IM * E
KO =
IR * 6 * 10
RR
-6
WhereIM= Measured current on the current sensor
IR= Rated current on the current sensor
ERR= Error ratio between the device and the Wh standard
KO= Offset constant (-127 ...127)
(The default value is 0)
Note that KO must be programmed as a integer value.
Meter/Manufacturers Identification Data
A total of eleven 4 bit words are available to store relevant data such as the meter
and manufacturer identification codes. For the optical interface protocol, the 4-bit
words are converted to 8-bit words (ASCII-format).
Writing to RAM
The memory is configured as ten 32 bit words. The programming data must be
written to the device as a bitstream containing a total of 320 bits. ROM-locations
will not be overwritten.
10/18
sames
Page 11
SA9109B
WordBitFunctionDescription
number number
131..28 Sign of Register 1 A '0' indicates a negative register value
127..0Register 1Contents of register 1 in binary coded decimal
231..28 Sign of Register 2 A '0' indicates a negative register value
227..0Register 2Contents of register 2 in binary coded decimal
331..28 Sign of Register 3 A '0' indicates a negative register value
327..0Register 3Contents of register 3 in binary coded decimal
431..28 Sign of Register 4 A '0' indicates a negative register value
427..0Register 4Contents of register 4 in binary coded decimal
531..28 Sign of RegisterA '0' indicates a negative register value
'Total'
527..0Register 'Total'Registers 1, 2,3 and 4 are added and stored in the
register 'Total'
631..16 ROMDon't care
615..0Manufacturers16 bits are available for the manufacturer of the
Identificationmetering system as a system identification
731..28 ROMDon't care
727..0System28 bits are available for the manufacturer of the
Identificationmetering system as a system identification
831..0ROMDon't care
931ProgrammedProgrammed slope select bit must be set if the
slope selectdefault slope in ROM is not used
930..26 ROMDon't care
925Summation0 to select addition which takes direction of
method selectenergy flow into account
1 to select addition which does not take direction
of energy flow into account
924..22 SAMES definedBits must be set to 0 for correct functionality
921Sign of offsetBy setting the sign bit a negative value is indi-
cated
920..14 OffsetOffset of the device in binary
913..0SlopeSlope of the device in binary. (default = 11389)
1031..0ROMDon't care
The first bit of the programming data is written to word number 1, bit 31. The last
bit is written to word number 10, bit 0.
sames
11/18
Page 12
SA9109B
Programming procedure:
PGM
PCLK
PDTA
BIT-N0
W ORD-NO
DR-01257
3130
11
29
1
2827
1
1
2625
24
111
023
1
10
The PGM pin is pulled low and the PCLK pin should be clocked with an external
clock. The programming data on the PDTA pin must be stable during the rising edge
of the clock signal on PCLK.
The clock signal on PCLK should not exceed 200 kHz and does not have to be
synchronised with the oscillator frequency (FOSC).
Programming mode is interrupted if PGM goes high.
Memory Reset
In programming mode (while PGM is pulled low) if PCLK is left floating and
PDTA = 0, the internal clock of the SA9109B will ensure that default values are set.
For default conditions all of the RAM locations are set to 0 and the value of the slope
is set to 11389.
The minimum time period for a complete reset cycle is determined by:
t
= 322 *
min
64
FOSC
Where FOSC = Oscillator frequency (2MHz......4MHz)
If the recommended crystal frequency of 3.5795MHz is used, this will result in a
minimum reset time of 5.8ms.
The specified signal levels on pins PGM, PCLK and PDTA must remain stable for
the entire reset cycle period.
12/18
sames
Page 13
5.Tariff Registers
A multiple tariff facility is provided on-chip by means of 4 tariff registers, which are
externally selectable via the SR[0] and SR[1] inputs. The registers may be selected
by programming the SR[0] and SR[1] inputs as follows:
The 4 Tariff registers and Total register may be sequentially displayed by activating
the Push Button (PB). The minimum push button make time is 5ms. The contents
of the register selected for display is retained on the display for a period of 10
seconds, provided that the push button is not activated during this period. After the
10 seconds has elapsed, the display defaults to the "active" register defined by the
status of the SR[0] and SR[1] inputs.
The register selected for display via the push button (PB) is indicated by the
relevant announciators.
6.Optical Interface
The SA9109B device contains an interface for automatic meter reading, according
to the IEC1107 Mode D standard. The IEC1107 Mode D is a single baud rate of
2400. For the optical interface protocol, the 4-bit words are converted to 8-bit words
(ASCII-format).
After initiation of a serial transmission by pulling PB (pin 34) low, the data format
transmitted on SDO is given below:
SA9109B
CodeDescription
/Start transmission
XXXID
3Baud rate identification
YYYYYYYYID
<cr><lf><cr><lf>Data header
0(nnnnnnnn)Data of Reg. 1 (sign, 10e5, 10e4 ...10e0, 10e-1)
1(nnnnnnnn)Data of Reg. 2
2(nnnnnnnn)Data of Reg. 3
3(nnnnnnnn)Data of Reg. 4
4(nnnnnnnn)Data of Reg. 'Total' = Sum of registers 0 to 3
!<cr><lf><cr><lf>End transmission
sames
13/18
Page 14
SA9109B
7.Power Failure/Battery Backup
A battery backup facility is available on VBA. This feature is provided to ensure
retention of the information stored in the registers, in case of power breaks.
The VSS supply to the analog circuitry and digital circuitry of this device has been
separated. In the event of a power failure, the supply to the analog circuitry falls
to 0V. The digital circuitry is switched to a power down mode, to minimise the supply
current from an external battery backup. During this procedure, the following
events take place:
• All inputs are disabled
• All outputs are placed in high impedance mode
• The oscillator is inhibited
• The LCD driver is disabled
• The contents of the RAM is retained by means of an external power source.
8.Electrostatic Discharge (ESD) Protection
The SA9109B integrated circuits inputs/outputs are protected against ESD.
9.Power Consumption
The power consumption rating of the SA9109B integrated circuit is less than 40mW.
TYPICAL APPLICATION
In the Application Circuit (Figure 1), the components required for a single phase power
metering application are shown.
In Figure 1 a shunt resistor is used for current sensing. In the application, the circuitry
requires a +2.5V, 0V, -2.5V DC supply.
The most important external components for the SA9109B integrated circuit are:
C1 and C2 are the outer loop capacitors for the two integrated oversampling A/D
converters. The value of these capacitors is 560pF.
The actual values determine signal to noise and stability performance. The tolerances
should be within ±10%.
C3 and C4 are the inner loop capacitors of the A/D converters. The optimum value is
3.3nF. The actual values are uncritical. Values smaller than 0.5nF and larger than 5nF
should be avoided.
R1, R2 and RSH are the resistors defining the current level into the current sense input.
The values should be selected for an input current of 16µA
into the SA9109A, at
RMS
maximum line current.
R1 = R2 =
WhereI
IL
16µA
RMS
L
R
SH
*
2
= Line current
RSH=Shunt resistor
14/18
sames
Page 15
SA9109B
R3, R6 and R4 set the current for the voltage sense input. The values should be selected
so that the input current into the voltage sense input (virtual ground) is set to 14µA
RMS
R7 defines all on-chip bias and reference currents. With R7 = 24kΩ, optimum conditions
are set. R7 may be varied within ±10% for calibration purposes. Any change to R7 will
affect the energy calculation quadratically.
XTAL is a colour burst TV crystal (f = 3.5795MHz) for the oscillator. The oscillator
frequency is divided down to 1.7897MHz on-chip to supply the digital circuitry and the
A/D converters.
Figure 1: Application Circuit using a Shunt Resistor for Current Sensing.
Note 1:Resistor (R1 and R2) values are dependant upon the selected value of RSH.
Note 2:Resistor (R3, R4 and R6) values are dependant upon the rated mains voltage
(230V in this case).
Note 3:See TYPICAL APPLICATIONS when selecting the value of RSH.
Note 4:Capacitor (C7) to be positioned as close as possible to VDD & VSS of IC-1.
16/18
sames
Page 17
ORDERING INFORMATION
Part Number Package
SA9109BFA PLCC-44
SA9109B
sames
17/18
Page 18
SA9109B
Disclaimer:The information contained in this document is confidential and proprietary to South African Micro-
Electronic Systems (Pty) Ltd ("SAMES") and may not be copied or disclosed to a third party, in whole or in part,
without the express written consent of SAMES. The information contained herein is current as of the date of
publication; however, delivery of this document shall not under any circumstances create any implication that the
information contained herein is correct as of any time subsequent to such date. SAMES does not undertake to
inform any recipient of this document of any changes in the information contained herein, and SAMES expressly
reserves the right to make changes in such information, without notification,even if such changes would render
information contained herein inaccurate or incomplete. SAMES makes no representation or warranty that any
circuit designed by reference to the information contained herein, will function without errors and as intended by
the designer.
Any sales or technical questions may be posted to our e-mail address below:
energy@sames.co.za
For the latest updates on datasheets, please visit our web site:
http://www.sames.co.za
South African Micro-Electronic Systems (Pty) Ltd
P O Box 15888,33 Eland Street,
Lynn East,Koedoespoort Industrial Area,
0039Pretoria,
Republic of South Africa,Republic of South Africa