Ultra-low power design withUltra-low power design with
MSP43
0
Three Phase Electricity MeterSolution
Texas Instruments Ultra-low-power µController
Vincent Chan TIHK Nov. 2001
Ultra-low power design withUltra-low power design with
MSP43
0
Class 0.5 accuracy for 5-20A, 100-300V nominal voltage at 50-60Hz (options for 5-60A)
Programmable multi-tariff systems, provide 40kb of non- volatile memory (FLASH) for data logging.
Provide advance power measurement features such as Power Factor, Active, Reactive power, Peak power, Peak demand time etc.
One button, fully automatic calibration to simplify manufacturing
Full temperature range from –40 to +85 °C
Standby power consumption of 3A with real time clock and calendar functional. 10+ years of standby time.
Built in Temperature sensor for automatic compensation.
Design Targets
Ultra-low power design withUltra-low power design with
MSP43
0
In system reprogrammability through serial port with 256 bit password.
Open source code provided in C, Flash MCU can be easily reprogrammed to different customers’ requirements
low cost, easy to use development tool, on site diagnosis using a notebook PC.
Optional US or Europe ISM Band r-f AMR (automatic metering reading) capability available.
Design Targets contin.
Ultra-low power design withUltra-low power design with
MSP43
0
1、在 5-20A电流时可达 0.5级精度, 50-60Hz的额定电压为 100-300V
2、可编程复费率系统,提供 60K的非易失性 FLASH存贮空间。3、提供预付费电力测量特性如:功率因子、有功率、无功功率峰值电压、峰值功率需要量时间等
4、单键全自动校准以便制造简单5、工业级标准,温度范围从 -40 -85℃ ℃6、静态电流为 3μA,此时实时时钟还在运行,以便实现日历功能7、内置温度传感器可以用来自动补偿8、在串行口上通过 256位口令校验,可进行系统重复远程编程。9、提供开放式 C语言源代码,MSP430FLASH型的MCU可按照不同消费者的要求实现二次编程。
10、低廉、易操作的开发工具,可用笔记本电脑进行现场诊断。 11、可选择美国或欧洲 ISM波段( ARM)进行 RF无线自动读取测量数据
Design Targets contin.
Ultra-low power design withUltra-low power design with
MSP43
0
ADCMEM0
ADCMEM5
ADCMEM1
ADCMEM2
ADCMEM3
ADCMEM4
32 b
it M
ACAutoscan
16 bit RISC
Error p.f.phase 2 phase 3phase 1
LCD Glass
200ksps12bitADC
A3
A4
A5
A0
A1
A2
Ph
ase
2
Ph
ase
3
Neu
tral
Ph
ase
1
CT + Pre-amp
160 segment LCD Driver
MSP430F44X
Single Chip 3 phase electricity measurement
Ultra-low power design withUltra-low power design with
MSP43
0
Demonstration PCB board
Op-amp LM358, TLC279
CT:Phase 1Phase 2Phase 3
Power pulse LEDs
MSP430F449
Includes 60K flash ROM and
LCD Driver
Battery slot
Ultra-low power design withUltra-low power design with
MSP43
0
Ultra-low Power Consumption 1.8 V ... 3.6 V Supply Voltage Range
200 µA Active Current @ 1MHz, 2.2V
0.7 µA Stand-by Current (10 years battery life)
0.1 µA RAM Retention Off-mode Current
6 µs Wakeup from Standby Mode
Powerful CPU Core 16-Bit RISC Architecture, (27 instructions)
125 ns Instruction Cycle Time at 8 MHz
Flexible Peripherals Fast 12-bit A/D Converter (8 ext. & 4 int.
channels, conversion time <10 µs)
6/10 channels of 16 bits Timer
1* (or 2**) USART
115.2kb UART at 60uA
4800b UART at 2uA
Hardware Multiplier**
On-chip Comparator for Analog Signal Compare
Built in LCD driver
In System Programming
Built in debug logic
RUN THE MARATHON,NOT THE MILE.
TI’s Flash MSP430 MCU reducespower consumption drastically,so your batteries run longer.
* MSP430F13x** MSP430F14x
MSP430F44X Flash Family - Key Features
Ultra-low power design withUltra-low power design with
MSP43
0
100 pin QFP
MSP430F44x Configuration
DVCC DVSS RST/NMI
TEST/VPP
Test
JTAG
incl. 16 reg.
CPU
Flash 32 KB48 KB60 KB
RAM
1 KB2 KB2 KB
MAB,4bit
MDB,8bit
MCBBusconv.
Power
on
Reset
XIN1 XOut1
Oscillator System Clock
ACLK
MCLK
SMCLK
Rosc
Watchdog
15 / 16 bit
Timer
12 bit ADC
8 channels
<10us conv.
ComparatorA
Timer_A3
3 CC Register
Basic Timer 1
1 interrupt
vector
AVCC AVSS
XIN2
XOut2
BreakpointLogic
COMM port
USARTs
Two
HardwareMPY
MAB, 16bit
MDB, 16bit
I/O Port 1/2
P1 P2
16 I/O’swithinterr. capability
P3 P4
I/O Port 3/4 16 I/O’swithinterr. capability
I/O Port 5
P5
8 I/O’swithinterr. capability
8
R33
LCD
160
1-4 MUX
Timer_B7
7 CC Register
Shadow Reg.
Segment
A0..7 R03R13
R23
Ultra-low power design withUltra-low power design with
MSP43
0
a0
a1
a2
a3
a4
a5
a7
a6
Analog
Multi-plexer
12 : 1
AVCC
AVSS
1.5V or 2.5V
AVSS
AVCC
V REF+
AVCCAVSS
Sample
&
Hold
CLKSRC1
CLKSRC2
CLKSRC3
ADC12OSC
Internal
Oscillator
ADC12CLK
S/H
Divide by
1,2,3,4,5,6,7,8
Sampling
Timera8
a9
a10
a1112-bit S A R
ADC12DIV
REFON2_5V
ISSHSHP
ADC12CTLx.0..3
ADC12CTLx.4..6
T
SHT1
SHT0
ADC12ON
ADC12SSEL
SHS
VeREF+
V REF+
V REF- / VeREF-
V R+V R-
12-bit A/D converter core
ENC
Conversion CTL
MSC
Ref_X
INCH= 0Ah
Ref_X
SAMPCON
ADC12SC
ADC12I1
ADC12I2
ADC12I3
Reference
on on
0140h
0142h
015Ch
015Eh
080h
081h
08Eh
08Fh
ADC12MEM0
ADC12MEM1
ADC12MEM14
ADC12MEM15
16 x 12-bitADC Memory
16 x 8-bitADC Memory Control
ADC12MEM10
ADC12MEM9
ADC12MEM8
ADC12MEM6
ADC12MEM7
ADC12MEM5
ADC12MEM11
ADC12MEM4
ADC12MEM3
ADC12MEM2
ADC12MEM12
ADC12MEM13
ADC12CTL0
ADC12CTL1
ADC12CTL2
ADC12CTL3
ADC12CTL4
ADC12CTL5
ADC12CTL6
ADC12CTL7
ADC12CTL8
ADC12CTL9
ADC12CTL10
ADC12CTL11
ADC12CTL12
ADC12CTL13
ADC12CTL14
ADC12CTL15
082h
083h
084h
085h
086h
088h
087h
089h
08Ah
08Bh
08Ch
08Dh
0144h0146h
0148h
014Ah
014Ch
014Eh
0150h
0152h
0154h
0156h
0158h
015Ah
SHI
MSP430F44x/43x ADC12
12-bit ADC (succ. appr.) +/- 1 LSB (DNL/INL) Selectable reference
1.5V or 2.5V 8 Analog channels external
plus 4 internal Integrated temperature sensor Fast conversion (200ksps) Adjustable sample time Integrated Sample & Hold Single channel or multiple
channel measurement
FLASH
32/48/60kB
RAM
1/2kB
Pow er-OnReset
I/OPort 1/2
System Clock
Oscillator
I/OPort 3/4
I/OPort 5
W atchdogTimer
Timer_B7 Timer_A3 Com paratorUSART 0
UART/SPI
Hardw areMultiplier
12bit ADC
CPU TestJTAG
I/OPort 6
USART 1
UART/SPI
Busconv.
ACLK
SM CLK
X IN X O U T
M C LK
TM STC KTD I
TD O /TD I
ACLK
SM CLK
M AB-16bit
M DB-16bit
M CB
M DB-8bit
M AB-4bit
4
D V C C D V S S A V C C A V S S R S T/N M I P 1 P 2 P 3 P 4 P 5 P 6
Ultra-low power design withUltra-low power design with
MSP43
0
Error p.f.phase 2 phase 3phase 1
LCD Glass
System block diagram
Ele
ctri
city
Mea
sure
men
t
Communication UART/SPI
AutomaticCalibration
RTC+Calendar Flash 60K
Program 20K
Data Log 40K
Display Driver
FLL
16 BIT RISC MCU
Sig
nal
Pro
cess
ing
Bu
ilt in
sca
n m
em A
DC JTAG InterfacePhase 1
Phase 2
Phase 3
+Backup
32kHz
Reference meter
Diagnostics
Power control
AutomaticMeter
ReadingUnit
MSP430F44X
Ultra-low power design withUltra-low power design with
MSP43
0
Auto-range and sampling
12bitADC
_
+
+
_
V’
V’
I
Vref = 2.5V
Vref
=1/4*Vref
Vref+
Veref-
Veref+
I’
V’ V’
I
V
I
0000
4096
4096
0000
Auto range
SamplingControlPhase 1
Ultra-low power design withUltra-low power design with
MSP43
0
Signal Chain
12bitADC Phase correction
V’
i
vaveraging
I
V’X
DC extraction
Power Factor
scaling
Pulse outputReactive
Phase Angle
Active
Power
Auto range
Vref - GND
V: dc level
Energy
I: dc level
Veref+ - Veref-
Floating point
Ultra-low power design withUltra-low power design with
MSP43
0
CT phase delay compensation
Coefficients table
i
v
Phase DelayDetection
(floating point)
Z-1 k
+ AX
fractionalphase delay
P’
P
Fixed delay
I(n) = [ I(n-1) * k +I(n) ]*A Fixed delay = 60o
P’/P = cos(60+)/cos() = cos(60)-sin(60)sin()/cos()= ratio
If Q = [cos(60)-ratio]/sin(60)]
arc_cos[ square_root(1/(Q^2+1))]
Phase delay detection:FIR: fractional delay:
X
Ultra-low power design withUltra-low power design with
MSP43
0
Power measurement features
i
v
Z-1 k
+ A
fractionalphase delay
P’
P
Power Factor = cos(
Reactive Power = P tan(
Phase Angle =
Active Power = P
P
XFixed delay
X
Phase DelayDetection
(floating point)
Ultra-low power design withUltra-low power design with
MSP43
0
Calibration set up
Simple set up, need one reference meter Fully automatic calibration for each phase in turn. Compensate for 3 CT’s phase-lag. Results stored in Flash
p.f.phase 1
Ph 1 Ph 2 Ph 3
UPF Load
Power Supply
Meter underTest
ReferenceMeter
Ultra-low power design withUltra-low power design with
MSP43
0
Development Environment
JTAG InterfaceTarget System
IAR C-SPICE
Ultra-low power design withUltra-low power design with
MSP43
0
MSP-FET430P440New Development Kit for x13x / x14x family members
Complete low-cost application development tool based on integrated emulation logic emulates F433, F435, F447, F448, F449
Hardware:
• Development Board including PC parallel cable, JTAG cable, socket, F149 samples
Software:
• CD - ROM with complete documentation,IAR “KickStart” Development Environment, Simulator, Debugger, Assembler/Linker, limited C-Compiler (1KB Code),
Functionality:
• Download, Update, run and debug code from PC under JTAG control
• Programming of the Flash memory
• Full speed operation via internal Emulation Logic (3 Breakpoints possible)
Price:
• 99$ suggested resale price
TI FLASH means low cost Emulation Tools!
New