View
222
Download
0
Category
Preview:
Citation preview
TM
Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-
Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC, Processor
Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale
Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet, Flexis,
Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play,
SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and Xtrinsic are
trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of
their respective owners. © 2013 Freescale Semiconductor, Inc.
May 2013
2
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Familiarize with Kinetis L microcontroller family of devices.
• Understand major flow metering principles and methods.
• Discover Kinetis L advantages for flow metering applications.
Flow measurement is essential in many industries such as the oil,
power, chemical, food, water, and waste treatment industries. These
industries require the determination of the quantity of a fluid, either
gas, liquid, or steam, that passes through a check point, either a
closed conduit or an open channel, in their daily processing or
operating. The quantity to be determined may be volume flow rate,
mass flow rate, flow velocity, or other quantities related to the previous
three.
3
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
4
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Measure − Water and Gas meters must
measure the volume of fluid consumed by the user
− Heat meters must measure the amount of heat delivered to a location
• Process − Accurate time keeping tracks the
volume over a period of time for billing purposes
− The core processor is used to accumulate and calculate
− Tamper processing ensures security
• Display/Communicate − LCD display allows visual
inspection − HMI (Touch Sensing Interface)
allows system configuration. − UART/IR allows download of data
for utility companies − RF communications for automatic
meter reading
Flow
Sensor
MCU Kinetis L
LCD
Serial
Interfaces
Battery
Tamper
Optocoupler
IEC1107
RS485
RTC
Water or Gas Line
LC
D D
river
Communications
Interfaces
RF
HMI
(TSI)
MEASURE PROCESS DISPLAY
5
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• The system containing a flow meter will be capable of interrupting the flow if it fails to measure it or it detects any occurrence of tamper events
• The meter will operate in low-power mode for most of the time and will return to normal mode for updating/communicating reading
• COP will be running to reset the system in-case of runaway code
• The flow will be measured by a suitable sensor. The sensor will provide the flow rate in the form of digital pulses or by a varying analog output proportional to the flow rate.
• The flow readings will be stored in EEPROM, in periodic intervals (say every minute), using I2C. This will ensure that the meter reading is not lost in case of power down.
• The meter can be read in three ways:
− LCD Display
− Through RS-232/485 communication interface using SCI
− Wirelessly through Infrared interface supported over SCI
• The meter will measure time and detect external tamper events through RTC
• The meter will be parameterized through local control panel with buttons implemented using capacitive sensing principle.
• The meter will run on battery supply. The battery condition will be monitored by ADC to generate a LOW Battery warning.
• The meter will have provision for resetting its count. The exact method for resetting the meter will be implementation specific
6
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
7
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Perf
orm
an
ce
Integration
32-bit ARM Cortex-M4
32-bit ARM Cortex-M0+
Freescale Bundled IDE, RTOS & Middleware - Rapid prototyping Platform - Broad ARM Ecosystem Support
Leading Performance - Low Power - Scalability - Industrial-grade reliability & temperature
Kinetis K Series ARM Cortex-M4,
50-150MHz, 32kB-1MB,
32-256pin, low power,
mixed-signal, EEPROM,
connectivity, HMI & security
Kinetis X Series ARM Cortex-M4,
200MHz, 0-4MB, advanced
performance, memory and
feature integration
Kinetis L Series ARM Cortex-M0+,
48MHz, 8-256kB, 16-121pin,
ultra-low power, mixed-
signal, connectivity & HMI,
compatible with K Series
8
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• ARM Cortex-M0+ Processor
• 90nm low-power flash technology
• Bit Manipulation Engine
• <50uA/MHz
• Peripheral Bridge Crossbar
• Zero Wait State Flash Memory Controller
Ultra-efficient processing
• 90nm low-leakage flash technology
• Multiple RUN, WAIT and STOP modes
• 4us wake-up from deep sleep modes
• Clock & power gating, low-power boot options
• 2uA Deep Sleep Idd with register retention, LVD active and 4.3us wake-up
Ultra low-power
modes
• Smart peripherals function in deep sleep modes and can make intelligent decisions and process data without waking up the core – ADMA, UART, Timers, ADC, Segment LCD, Touch Sensing...
Energy-saving peripherals
Most Innovative
Process
Technology
Kinetis ARM®
Cortex-M4 MCUs
9
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Optional Features
Internal Memory Communications HMI
KL4 Family, USB, Segment LCD, 64-121 pin
128-256kB Flash 16-32kB SRAM USB OTG (FS) Segment LCD
KL3 Family, Segment LCD, 64-121 pin
64-256kB Flash 8-32kB SRAM Segment LCD
KL2 Family, USB, 32-121 pin
32-256kB Flash 4-32kB SRAM USB OTG (FS)
KL1 Family, Baseline, 32-80 pin
32-256kB Flash 4-32kB SRAM
KL0 Family, 8-bit S08P pin compatible, 16-48pin
8-32kB Flash 1-4kB SRAM
Common Features
System
ARM Cortex-M0+ Core, 48MHz
Multiple Low Power Operation Modes, Clock Gating, 1.71V - 3.6V
DMA, Cross-Bar Switch
Operating Temp: -40 to 105°C
Memory
90nm TFS Flash Memory (High Reliability, Fast Access)
SRAM
Internal Memory Security/Protection
Analog Peripherals
16-Bit ADC[1]
12-bit DAC
High-Speed Comparators
Low-power Touch Sense Interface
Serial Interfaces
LPUART, UART[2]
SPI, IIC
Timers
RTC
Low Power TPMs
Low Power Timers
System Timers
[1] Feature not available on KL0 MCUs (KL0 MCUs have 12-bit ADC)
[2] Feature not available on KL0 MCUs (KL0 MCUs have LPUART)
10
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
KL35/KL34 Family
Analog Interfaces
System
Peripheral Bus
Energy Management
Power On
Reset
Low Voltage
Detector
Voltage Regulator
Clock Management
FLL
Timers
SRTC Temp. Compensated
I/O Ports Connectivity
I2C x 2 12-bit
DAC HSCMP
Flash
64-256K RAM 8-32K
Debug
(SWD)
COP
RST
Unique ID
DMA 4-ch
TSI x
16ch
Up to 80 GPIO
(4 High Dive)
w/ 25 interrupt
LPO
(1KHz)
RST/
Input LPTMR
Crystal
Oscillator (low & high
range)
16b LPTPM
6ch x1, 2ch x 2
SPI x 2
ADC (SAR w/ DMA)
12/16-bit, up to 16ch
Run Operation in: Wait VLLS
1
VLLS
0 Stop/
VLPS
VLLS
3
HMI
Segment LCD
51x8/55x4
ARM Cortex-M0+ Core Ultra-low power
48MHz bus freq.
Packages: 64LQFP, 100LQFP, 121MBGA
PIT 2ch, 32bit
LS Osc
(32KHz)
ULP Osc
(4MHz)
UART
x2
LPUA
RTx1
IIS
x1
PLL
11
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
KL35/KL34 Family
KL3x
Part Number
Memory Features Packages
Fla
sh (
KB
)
SR
AM
(K
B)
DM
A
UA
RT
SP
I
IIC
TS
I
12-b
it D
AC
16-b
it A
DC
12-b
it A
DC
GP
IO
Oth
er
24 Q
FN
(4X
4)
FK
25 W
LC
SP
(2.3
x2.3
)
32
LQ
FP
(7
X7
) L
C
32 Q
FN
(5X
5)
FM
35 W
LC
SP
(2.3
5x2.8
8)
48 L
QF
P (
7X
7)
LF
48 Q
FN
(7X
7)
FT
64
LQ
FP
(1
0X
10
) L
H
80 L
QF
P (
12X
12)
LK
10
0 L
QF
P (
14X
14
) L
L
MKL34Z64Vxx4 64 8 X 3 2 2 X 36-66
Segment
LCD
X X X
MKL35Z64Vxx4 64 8 X 3 2 2 X X X 36-66 X X X
MKL35Z128Vxx4 128 16 X 3 2 2 X X X 36-80 X X X
MKL35Z256Vxx4 256 32 X 3 2 2 X X X 36-80 X X X
12
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
13
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
90nm TFS
Memory
eDMA
Crossbar
Flash
Memory
Controller
Bit
Mani-
pulation
Engine
Integration
Micro
Trace
Buffer
RGPIO
Reduce # of Cycles
Autonomous & Precise Low Power Peripherals
Improved Performance
Smart Evolution Instead of Revolution
Comprehensive Compatibility
Reduce Overall Power Consumption
14
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• ARMv6-M Thumb Instruction Set
− 32-bit performance at 16-bit density
• 32-bit Simplification
− 32-bit data structure
− 32-bit Address Space (no paging)
4,896
6,446
10,206 10,066
5,418
0
2,000
4,000
6,000
8,000
10,000
12,000
Corex-M0+ A (16-bit) B (16-bit) C (8-bit) D (8/16-bit)
Code compiled optimized for size
CoreMark Code in kB
48cycles*,
48Byte Code Size
8cycles,
8Byte Code Size
1cycle
2Byte Code Size
*8051 needs at
least 1cycle per
instruction byte
fetch as they only
have an 8-bit
interface
16-bit Multiplication Example
Code Efficiency
15
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Support concurrent access from DMA/Core to
memory and peripherals – offload CPU
• Kinetis L-Series devices support DMA
operation in low power modes
Bit
Manipulation
Engine
Direct
Memory
Access
ARM®
Cortex™-M0+
Flash
Memory
Controller
Rapid
GPIOs
Master Slave
The FMC supports 8-bit, 16-bit, and 32-bit
read operations from the program flash
memory.
In addition, the FMC provides two separate
mechanisms for accelerating the interface
between bus masters and program flash
memory. A 32-bit speculation buffer can
prefetch the next 32-bit flash memory
location, and a 4-way, 4-set program flash
memory cache.
Any operation involving a DMA
channel follows the same three
steps:
1.Channel initialization
2.Data transfer
3.Channel termination
Reduce cycles with parallelization and acceleration schemes
16
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
17
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Mode CPU/Bus
Freq. Details
Peripheral
Clocks
Typical Idd
@ 3V, 25C
Recovery
Time
RUN
48/24 MHz
MAXIMUM CPU/Bus frequency.
Compute clocking option SUPPORTED
ENABLED 6.38mA (133uA/MHz) -
48/24 MHz DISABLED 4.44mA (93uA/MHz) -
48/- MHz Compute
Operation* 3.98mA (83uA/MHz) -
VLPR
4/1 MHz
RESTRICTED CPU/Bus frequency.
Compute clocking option SUPPORTED
LVD OFF. Flash programming NOT supported
ENABLED 219uA (55uA/MHz) -
4/1 MHz DISABLED 170uA (43uA/MHz) -
4/- MHz Compute
Operation* 156uA (39uA/MHz) -
WAIT 48/24 MHz MAXIMUM CPU/Bus frequency. CPU in SLEEP, peripherals functional.
Compute clocking option NOT supported DISABLED 3.88mA -
VLPW 4/1 MHz RESTRICTED CPU/Bus frequency. CPU in SLEEP, peripherals functional.
Compute clocking option NOT supported.
LVD OFF. Flash programming NOT supported
DISABLED 112uA 4us
STOP - MCU in static state, LVD ON. Energy-saving peripherals functional with ADMA.
AWIC detects wake-up source for CPU. - 309uA 4.3us
VLPS - Same as STOP mode. LVD OFF. - 2379nA 4.3us
LLS - MCU in low-leakage state retention power mode. LLWU detects wake-up source for
CPU including LPTMR, RTC, TSI, CMP, and select pin interrupts. Fast wake-up. - 1738nA 4.6us
VLLS3 - MCU in low-leakage mode, most internal logic OFF. All RAM contents retained and
I/O states held. LLWU controls wake-up source for CPU similar to LLS mode. - 1344nA 53us
VLLS1 - MCU in low-leakage mode, most internal logic OFF. All RAM is powered off and I/O
states held. LLWU controls wake-up source for CPU similar to LLS mode. - 713nA 115us
VLLS0 - Pin wakeup supported. LPTMR, RTC, TSI and CMP wake-up supported with external
clock. Optional POR brown-out detection circuitry. -
411nA (POR) /
205nA (no POR) 115us
RU
N
WA
IT
(SL
EE
P)
ST
OP
(DE
EP
SL
EE
P)
*Compute Operation shuts off bus and system clock for lowest power core processing.
Peripherals with an alternate asynchronous clock source can continue to operate.
18
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Low-leakage 90nm TFS Flash
• Ultra-fast recovery time
− Rapid, 4us transition time from Deep Sleep to Run modes
− Minimize average power consumption in frequent power mode change applications
• Low Leakage Wake-up Unit
− Full shutdown of core logic extends low power wake-up capability of some peripherals in all power modes
Power Mode Recovery
Time
“Typical” Idd
Range (est.)
LLS 4.6us From 1.738uA
VLLS3 53us From 1.334uA
VLLS1 115us From 713nA
VLLS0 115us From 205nA
(NO POR)
• Asynchronous DMA
− Allows peripherals to trigger asynchronous DMA requests in STOP/VLPS without CPU intervention
• Communications
− UART, SPI, IIC, USB – support wake-up function down to STOP/VLPS modes
• Mixed-Signal
− ADC – single conversions in STOP/VLPS modes with hardware averaging and automatic compare
− ACMP – triggered compare mode for lower average power compares
− DAC – static reference in all modes
• Timing
− Low Power Timer – input capture, output compare and PWM in STOP/VLPS modes
− RTC – low power operation with temperature & voltage compensation
• User Interface
− Segment LCD - blink capability in all power modes
− Touch Sensing - wake-on touch on single channel in all power modes
19
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
20
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Frequency-locked loop (FLL) • DCO frequency range is programmable for
up to four different frequency ranges. • Input frequency range 31.25 – 39.0625 kHz
• 3% deviation over voltage and temperature using internal 32 kHz internal reference clock
Phase-locked loop (PLL) • External reference clock is used to control
the PLL • Modulo VCO frequency divider • Input frequency range 2.0 – 4.0 MHz • Phase/Frequency detector
Internal reference clock generator: • Slow clock with nine trim bits for accuracy • Fast clock with four trim bits • Slow or the fast clock can be selected as the
clock source for the MCU and for other on-chip peripherals
Others: • MCGPLLCLK/2, MCGFLLCLK, MCGIRCLK,
OSCERCLK and ERCLK32K are provided as a clock source for other on-chip peripherals
• Two clocks for on-chip peripherals that can work in LLS and VLLSx modes (OSCERCLK and ERCLK)
• Two independent postscalers: 1. Core, platform and system clock 2. Bus and flash clock
OSC Clock Sources
External
crystal
oscillator or
resonator
Low frequency:
32 – 40 kHz
High frequency:
3 – 8 MHz (low range)
8 – 32 MHz (high range)
External
square wave
input clock
DC to 48 MHz
Oscillator (OSC)
• Automatic Gain Control (AGC) to
optimize power consumption in high
frequency ranges using low–power
mode
• High gain option in all frequency
ranges
• Voltage and frequency filtering to
guarantee clock frequency and
stability
VLPR VLPW Stop VLPS LLS VLLSx
OSCE
RCLK1
OSCE
RCLK1
OSCE
RCLK
OSCE
RCLK1
limited to low
range/low power
limited to low range/low
power in VLLS1/31
1) Max of 16 MHz crystal 2) OFF in VLLS0 but can work in bypass mode
21
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
22
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Output Modes: Differential 16-bit, 13-bit, 11-bit and 9-bit modes, or single-ended 16-bit, 12-bit,10-bit and 8-bit modes
• Output formatted in 2’s complement 16b sign extended for differential modes
• Output in right-justified unsigned format for single-ended
• Single or continuous conversion (automatic return to idle after single conversion)
• Configurable sample time and conversion speed/power
• Input clock selectable from up to four sources
• Programmable operation in some low-power modes for lower noise operation
• Asynchronous clock source for lower noise operation with option to output the clock
• Selectable asynchronous hardware conversion trigger with hardware channel select
• Automatic compare with interrupt for less-than, greater-than or equal-to, within range, or out-of-range, programmable value
• Temperature sensor
• Conversion rate up to 813ksps (13-bit mode)
• Hardware average function
• Selectable voltage reference: VREFH or VDDA
• Self-Calibration mode
VLPR VLPW Stop VLPS LLS VLLSx
FF FF
ADC
internal
clock only
ADC
internal
clock only
Static OFF
23
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
CMP:
• Continuous and Sampled modes
• Programmable filter and hysteresis
• Reference option: VDD or VREFH
ANMUX:
• Up to seven independently selectable channels for positive and negative comparator inputs
• Five external pin inputs and several internal reference options including 6-bit DAC0, 12-bit DAC0 and bandgap (1V).
6-bit DAC:
• Output range (Vin/64) to Vin
• VDD or VREFH selectable as reference
1) High-Speed Comparison mode 2) Low-Speed Comparison mode 3) OFF in VLLS0
VLPR VLPW Stop VLPS LLS VLLSx
FF FF HS1 / LS2
Compare
HS1 / LS2
Compare
LS
Compare
LS
Compare3
24
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
25
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Segment fault detection capability − Hardware support for segment LCD display errors
• Up to by 8 multiplexing
− Fewer pins required to drive LCD segments
Up to 51 front plane signals (up to 4x51)
Up to 8 back planes signals (up to 8x47)
• Low power blinking mode
− LCD glass blink capability in low power modes
− Alternate display feature can be activated to display alternate data (i.e. blink flow in m3 and time)
• Front and back plane re-assignment
− Any LCD pin can be a front plane or backplane pin or GPIO function
• Internal charge pump provides voltage required to power LCD glass
− Internally regulated voltage for constant contrast across MCU VDD
− Trim register for software contrast control
− Drive for 3V LCD glass
Async operation = Fully functional with alternate clock
source, provided the selected clock source remains
enabled
VLPR VLPW Stop VLPS LLS VLLSx
FF FF Async
operation
Async
operation
Async
Operation
Async
operation1
1) OFF in VLLS0
26
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Capacitive touch sensing detection across all low power modes
− Internal reference oscillator for high-accuracy measurement
− Configurable software or hardware scan trigger
− Compensate for temperature and supply voltage variations
− High sensitivity change with 16-bit resolution register
− Configurable up to 4096 scan times
− Support DMA data transfer
− Noise modes
− Low power mode current adder can be <1uA
• 16 input capacitive touch sensing pins
− Automatic detection of electrode capacitance across all operational power modes
− No need for external pull-up resistors
− Support DMA data transfer
• TSI interrupts
− End of Scan
− Out of Range (selectable scan period and thresholds)
MCU 1 2 3
4 5 6
7 8 9
* 0 #
VLPR VLPW Stop VLPS LLS VLLSx
FF Async
operation
Async
operation
Async
operation
Async
Operation
Async
operation
Async operation = TSI wakeup from all low
power modes is limited to a single selectable pin
27
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
28
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• 32-bit seconds counter with roll-over protection and 32-bit alarm
• 16-bit prescaler with compensation that can correct errors between 0.12 ppm and 3906
ppm
• Register write protection
• Lock register requires POR or software reset to enable write access
• Reset only by POR
• 1 Hz square wave output
• Remains functional in all low power modes and can generate an interrupt to exit any
low power mode.
• Does not have a dedicated VBAT domain.
• Clock source can be OSC32KCLK, LPO or external RTC_CLKIN
• RTC_CLKIN is the only source in VLLS0 modes
• RTC_CR [OSCE] over-rides system oscillator configuration, enabling 32kHz VLP
mode.
VLPR VLPW Stop VLPS LLS VLLSx
FF FF Async
operation
Async
operation
Async
Operation
Async
operation1
1) In VLLS0 the only clocking option is from RTC_CLKIN (external clock)
29
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Low Power Timer Features:
• 16-bit time counter or pulse counter with compare
− Optional interrupt can generate asynchronous wakeup from any low-power mode
− Hardware trigger output
− Counter supports free-running mode or reset on compare
• Configurable clock source for prescaler/glitch filter
• Configurable input source for pulse counter
• Operates across all power modes, including the low-leakage modes
• Continue operating through most system reset events, allowing it to be used as a time of day counter
Timer/PWM Features:
• Includes 16-bit global counter
• All TPM instances can operate from global counter
• Includes 6 channels that can be configured for input
capture, output compare, or edge-aligned PWM
mode
• TPM counter operates asynchronous to bus clock
• Remains fully functional in STOP/VLPS (if clock
remains enabled)
• Supports asynchronous interrupt and DMA request
• Counters not used for global counter can be used
separately for pulse accumulation or periodic
interrupts or periodic DMA requests
• Supports basic trigger generation for ADC
• Can be configured to start incrementing on trigger
input, clear counter on trigger input, or stop
incrementing on overflow
VLPR VLPW Stop VLPS LLS VLLSx
FF FF Async
operation
Async
operation
Async
Operation
Async
operation1
VLPR VLPW Stop VLPS LLS VLLSx
FF FF Async
operation
Async
operation Static OFF
1) LPO clock source is not available in VLLS0. Also, to use system OSC in
VLLS0 it must be configured for bypass (external clock) operation. Pulse
counting is available in all modes
30
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
31
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Rotary instruments that mechanically make direct measurements to the fluid by separating the fluid into segments of known values.
• Fluid goes through a chamber with a unit that repeatedly fills and discharges a fixed volume.
• The total volumetric flow rate can then be calculated from the rate of filling and discharging the discrete volumes
Source: http://automationwiki.com/index.php?title=Positive_Displacement_Flowmeters
Nutating-disk Meters Oval-gear Meters
32
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• The turbine flow meter translates the mechanical action of the turbine rotating in the liquid flow around an axis into a user-readable rate of flow (gpm, lpm, etc.).
• Turbine flow meters are used for the measurement of natural gas and liquid flow.
• The flow direction is generally straight through the meter, allowing for higher flow rates and less pressure loss than displacement-type meters.
• They are the meter of choice for large commercial users, fire protection, and as master meters for the water distribution system.
Source: http://www.efunda.com/designstandards/sensors/flowmeters/flowmeter_tbn.cfm
33
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Courtesy: www.derex.com/blancett_PDmeter.html
Kinetis L
ADC
LCD Display
Non-volatile (MRAM, EEPROM)
LCD
DRIVER
VBAT
GPIO
SCI SPI I2C
Voltage
Regulator
Sub GHz RF 2.4GHz RF RS232/485 RS422
MCU Clock
X1
GPIO/ Counter/ LPTIM
Optional functionalities not mandatory for every Flowmeter
VBAT
Key Peripherals:
• Timer/Counter/Low power timer operating in stand-by mode
• LCD display driver and TSI
• RTC periodical wakeup
• Wide operating voltage required for battery operation
Clock Generator
RTC
TSI
Touch Sensing
34
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Kinetis L
ADC
Non-volatile (MRAM, EEPROM)
VBAT
GPIO
SCI SPI I2C
Voltage
Regulator
Sub GHz RF 2.4GHz RF RS232/485
RS422
MCU Clock
X1
Comparator (multiplexer)
Optional functionalities not mandatory for every Flowmeter
VBAT
Key Peripherals:
• Comparator operating in VLPR mode
• LCD display driver and TSI
• RTC periodical wakeup
• Wide operating voltage required for battery operation
RTC GPIO
(output)
From
detectors
LED
Switching
Clock Generator
ADC
LCD Display
LCD
DRIVER
GPIO
TSI
Touch Sensing
35
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• The tube is caused to vibrate by induction of fluctuating currents
• Flow through the tube causes it to twist proportionally to the flow. The distortion of the tube is detected by magnetic sensors and the resultant signal is conditioned and sent to control equipment
• The inlet arm and the outlet arm vibrate with the same frequency as the overall vibration, but when there is mass flow the two vibrations are out of sync: the inlet arm is behind, the outlet arm is ahead. The two vibrations are shifted in phase with respect to each other, and the degree of phase-shift is a measure for the amount of mass that is flowing through the tubes.
Source: http://en.wikipedia.org/wiki/Mass_flow_meter
Inlet pickoff
magnetic sensor Outlet pickoff
magnetic sensor
No flow Mass flow
Shift=0 Shift ≠ 0
Inlet pickoff
magnetic sensor
Outlet pickoff
magnetic sensor
36
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Kinetis L
Non-volatile (MRAM, EEPROM)
SCI SPI I2C
Voltage
Regulator
Sub GHz RF 2.4GHz RF RS232/485
RS422
MCU Clock
X1
100ksps ADC
Key Peripherals:
• Fast processing core (16x16 multiply required)
• Timer to generate excitation signals
• Fast and high-dynamic range ADC to acquire signals of the magnetic sensors
• Execution in VLPR preferred if achieving low power consumption is necessary
RTC
230V/110V
Power Supply
Timer
Signal Conditioning
Inlet pickoff
magnetic sensor
Outlet pickoff
magnetic sensor
Clock Generator
The drive coil is used with a magnet to produce the oscillation
of the Coriolis sensor flow tubes. The coil is energized to keep
the tubes vibrating at their natural frequency.
Excitation coil with
magnet
LCD Display
LCD
DRIVER
GPIO
TSI
Touch Sensing
Optional functionalities not mandatory for every Flowmeter
37
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Two sensors mounted on the pipe simultaneously send and receive ultrasonic pulses.
• At zero flow, both sensors receive the transmitted ultrasonic wave at the same time, i.e. without transit time delay.
• When the fluid is in motion, the waves of ultrasonic sound do not reach the two sensors at the same time.
• This measured "transit time difference" is directly proportional to the flow velocity and therefore to flow volume.
• By using the absolute transit times both the averaged fluid velocity and the speed of sound can be calculated.
Source: http://www.efunda.com/designstandards/sensors/flowmeters/flowmeter_ustt.cfm
where X is the projected length of the path along the pipe direction
(X = L cos Ѳ)
38
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Kinetis L
Non-volatile (MRAM, EEPROM)
SCI SPI I2C
Voltage
Regulator
Sub GHz RF 2.4GHz RF RS232/485
RS422
MCU Clock
X1
SPI
Optional functionalities not mandatory for every Flowmeter
Key Peripherals:
• Execution in VLPR preferred if achieving low power consumption is necessary
• LCD display and TSI
• Optional GPIO pin wakeup from stand-by mode when new measurement is available
• RTC periodical wakeup
A B
Flow
Sensor Block
Liquid
Pipe wall
230V/110V
Power Supply
Sensor Block
ASIC
RTC
Clock Generator
GPIO
INT
LCD Display
LCD
DRIVER
GPIO
TSI
Touch Sensing
39
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
• Introduction to Flow Metering
• Kinetis L Family of Microcontrollers
− Cortex-M0+ Processing Core
− Low Power Operation
− Clock Management
− Analog Peripherals
− HMI Interface
− Timers
• Flow Meter Principles and Use-Cases
• Summary
40
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Needs Kinetis L Solution
Cortex-M0+ CPU Lowest power M0+ core (32x32 multiply in 1 cycle) up to 48MHz.
Low Power Less than 73uA/MHz VLPR Current1
Down to 130nA @VLLS0 (POR disabled)
User Interface Up to 4x51 (8x47) segment LCD display driver operating in all low power
modes.
16-channel Touch-Sense Interface (TSI) operating in all low power modes.
Communication Up to 3 UARTS, 2 SPIs and 2 IIC.
Memory
Scalability
From 32KB to 256MB of Flash.
From 8KB to 32KB of RAM
Program longword execution time (65us)
Time Keeping RTC module with crystal compensation operating in all low power modes
(Correction range ~ ±.12ppm .. ~ ±3900ppm)
Analog Modules High Speed ADC. 12-bit DAC. HSCMP.
Timers Low-Power Timer operating in all low power modes.
1) Typ. 292uA @ 4MHz core, system clock and 1MHz bus and flash clock. MCG configured for BLPE mode. All peripheral clocks disabled. Code executing from flash.
41
TM Freescale, the Freescale logo, AltiVec, C-5, CodeTEST, CodeWarrior, ColdFire, ColdFire+, C-Ware, the Energy Efficient Solutions logo, Kinetis, mobileGT, PEG, PowerQUICC,
Processor Expert, QorIQ, Qorivva, StarCore, Symphony and VortiQa are trademarks of Freescale Semiconductor, Inc., Reg. U.S. Pat. & Tm. Off. Airfast, BeeKit, BeeStack, CoreNet,
Flexis, Layerscape, MagniV, MXC, Platform in a Package, QorIQ Qonverge, QUICC Engine, Ready Play, SafeAssure, the SafeAssure logo, SMARTMOS, Tower, TurboLink, Vybrid and
Xtrinsic are trademarks of Freescale Semiconductor, Inc. All other product or service names are the property of their respective owners. © 2013 Freescale Semiconductor, Inc.
Freescale
CodeWarrior
Keil (MDK) IAR (EWARM) Code Red
(RedSuite)
Atollic
(TrueSTUDIO)
Kinetis L Basic
Device Support
Yes
CW10.3
Yes
v4.60
Yes
V6.50
Yes
V5.0
Yes,
v3.3
Processor
Expert Support Fully Integrated
Stand-alone
Driver Suite
(Eclipse) w/ MDK
Eclipse Plug-in
V6.50: Stand-
alone Driver Suite
Integrated
(requires include
path setup)
Not available in
current products
MQX Task
Awareness
Yes
(Professional
Edition)
Yes Yes No No
MTB Trace Yes (Production
Release)
Yes – with CMSIS-
DAP and ULINK2
v6.50 w/ I-Jet only
(no OpenSDA
support)
Yes Coming in a 2013
release
Low-power
Mode Debug Yes Coming Soon
Available only w/
IAR I-Jet Debug
Interface
No; coming in a
future release
Not available in
current products
Free Version
Limitations
Special Edition
64KB Debug
Lite
32KB
KickStart
16KB
Kinetis Edition
64KB
Lite
8KB
Download Size ~1150MB ~500MB ~800MB ~300MB ~500MB
TM
Recommended