Transcript Slide 1
Hands-on Workshop:
Enabling Microcontroller Curriculum
with Flexis QE128
Eduardo Montañez
Systems Engineer
TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
Agenda
Purpose
► Learn
about the Flexis™ QE device duo
► Understand how Flexis™ QE devices
enable MCU curriculum
► Walk-through several labs that highlight
key MCU features
Agenda
► Introducing
the Flexis™ QE family
► Benefits to Curriculum
► Industry Alignment
► Labs
► Summary
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
Introducing the Flexis™ MCU Series
TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
The Industry is Changing
► Embedded
developers increasingly tasked to
design for a portfolio of products ranging in
performance
► 8-bit
users driven to reach performance ceiling with
increased demands for performance and
functionality
► Economies
of scale and process technology
improvements push costs down
on 32-bit MCUs making them more affordable
► Migrating
across continuum of performance and
price options isn’t easy or quick when different bit
architectures require re-coding and different tools
Freescale is breaking bit boundaries to provide a simple and seamless path
to performance between 8-bit and 32-bit MCUs
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
What Does Flexis™ Mean?
► Single
development tool
CodeWarrior™ Development
Studio for Microcontrollers
supports both 8-bit (S08) and 32bit (CFV1) MCUs
• Eases and speeds design
process
•
► Common
•
Allows software reuse between
8-bit and 32-bits
► Pin-to-pin
•
peripheral set
compatibility
Maximizes hardware reuse when
moving between 8-bit and 32-bit
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
5
The Freescale Controller Continuum
ColdFire
V4
ColdFire
V3
ColdFire
V2
ColdFire
V1
Flexis™ Series
The Controller
Continuum
“Connection Point”
S08 core
RS08 core
32-bit
8-bit
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
6
Flexis™ Series Roadmap
ColdFire®
ColdFire®
General Purpose
Ultra-low power
ColdFire®
ColdFire®
S08
LCD Controller
USB Enabled
Colors Indicate
Pin/Peripheral
Compatibility
ColdFire®
Industrial Application
Controller
S08
General Purpose
Ultra-low power
S08
LCD Controller
S08
S08
Industrial Application
Controller
USB Enabled
2007
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
2008
2009
TM
7
Introducing the First Flexis Family
S08 and ColdFire V1 QE
50MHz S08 or ColdFire V1 system frequency
25MHz bus frequency
1.8-3.6V operating range
►Memory
Up to 8K bytes SRAM
Up to 128K bytes flash
►Features
2x SCI, 2x I2C, 2x SPI
2x KBI – 8 channels each
16-bit timers: 1 x 6-ch, 2 x 3-ch
12-bit 24 channel A-to-D converter
2 analog comparators
Up to 70 general purpose I/O
System integration (FLL, COP)
KBI
2xI2C
2xSCI
2x
ACMP
COP
ColdFire® V1
Core
Selection
S08 Peripherals
24 ch.
12-bit
ADC
3 16-bit
timers
S08
Flash Memory
128 KB
ICE +
BDM
Power
Mgmt
Control
(PMC)
8KB
SRAM
70
GPI/O
ICS+ULP
OSC
S08QE Packages
80LQFP, 64LQFP, 48QFN, 44QFP, 32LQFP
ColdFire QE Packages
80LQFP, 64LQFP
►Low
Power
Flexible Internal Clock Source (ICS)
Vreg with fast start up and low regulation voltage
Low-power 32 kHz oscillator
Optimized clock tree and clock gating techniques
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
2xSPI
Temperature Range
-40C to 85C
TM
8
What is QE128?
Flexis™ QE128 low power devices are the industry’s first 8- and
32-bit pin, peripheral and tool compatible MCUs which make the
design process quick, easy and limitless.
Unprecedented
compatibility
Ultra-low power
Easy to use
Freescale’s Controller
Continuum provides unique
flexibility to transition from 8bit to 32-bit. With pin,
peripheral and tool
compatibility, the Flexis QE
devices simplify and speed
the design process.
Through an optimized
architecture that provides
lower operating voltage and
current, the QE128 devices
offer industry-leading ultralow power benefits to
extend battery life.
Common CodeWarrior
development tools, training
and documentation gets
you on the design fast
track. Pin and peripheral
compatibility avoids
learning new codes and
tools.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
9
Benefits to Curriculum
TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
Making MCU Education Easier
►
►
►
►
Popular 8-bit & 32-bit core architectures with varying ranges of
complexity and performance
•
S08 is an easy to use 8-bit core targeted for introductory courses,
derived from the popular 16-bit S12 core.
•
ColdFire is high performance 32-bit core targeted for advanced
courses, derived from legacy 68K architecture.
Development tool unity for 8-bit & 32-bit Flexis QE devices
•
One CodeWarrior installation
•
One board with built in programmer
Same peripherals for 8-bit & 32-bit Flexis QE devices with
avenues to higher end peripherals
•
Teach one set of peripherals, then focus on building applications
•
Opens doors to other devices with higher end peripherals (USB,
LCD, CAN, FTM, Ethernet, MiniBus)
Consistency between 8-bit & 32-bit Flexis QE devices lends for
multiple courses
•
Teach one set of peripherals, then focus on building applications
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
Industry Alignment
TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
Applications
Medical Instrumentation
Portable health monitors
Home health monitoring
Patient monitoring
Dialysis machines
Cardiac rhythm management
Hearing analysis equipment
Powered beds
Infusion pumps
Electric wheelchairs
Laboratory equipment
Point of Sale
Card payment terminals
Handheld bar code scanners
Stationary bar code scanners
Bar code printers
Automatic Teller Machines (ATMs)
Portable data collection terminals
Factory Automation
Motion controllers
Machine vision
Operator panels
Embedded computer boards
I/O modules
Industrial networking products
Process controllers
Measurement equipment
Fire/Security
Smoke/heat detectors
Fire alarm sounders and control panels
CCTV cameras and control panels
Security cameras
Intruder alarm control panels
Intruder alarm motion detectors
Access control
Biometrics security systems
Carbon dioxide detectors
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
Consumer
Invisible pet fences
Electronic toys
Electronic keys and locks
Thermostats
Remote controls
Cordless telephones
Digital cameras/camcorders
Personal care products (electric shavers,
toothbrushes, etc.)
HVAC and Building Control
Utility meters
Environmental & building automation
Gas boiler controls
Thermostats
Utility meters
Lamp ballast
Air conditioners
TM
Low-End Blood Pressure Monitor
Same Hardware
Benefits with S08QE:
OLED Display
Sensor 1 = 120
Sensor 2 = 60
Air Chamber /
Pressure Sensor
GPIO
Low power consumption for
battery operated devices
Typical Down-Ramp Pressure
Analisys
Option to cut on features and
reduce overall cost
S08 selection criteria:
Motored Air
Pump
Wireless
Transmition
Patient 1: OK
Patient 2: Alarm
Absolute minimum power
consumption required
Lower pin count or pin count
options desired
No application requirement for
higher performance
calculations or peripherals
Greater cost sensitivity
Battery Powered
Patient 3: OK
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
High-End Blood Pressure Monitor
Same Hardware
Benefits with V1QE:
OLED Display
Sensor 1 = 120
Sensor 2 = 60
Air Chamber /
Pressure Sensor
GPIO
Low power consumption for
battery operated devices
High end Up-Ramp Pressure
Analysis
Option to increase diagnosis
capabilities
Coldfire selection
criteria:
Motored Air
Pump
Wireless
Transmition
Patient 1: OK
Patient 2: Alarm
Upward migration needed
Desire to increase functionality
Need for higher end
calculations or more core
speed
Battery Powered
Patient 3: OK
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
Low-end Machine Vision
Benefits with S08:
Low Cost
Image 1
Low Cost CMOS
camera
Observed
Object
Image 2
Image 3
I2C
SCI
Programming image
acqusition
Control
Process
Generate an Alarm
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
High-End Machine Vision
Benefits with V1:
Image 1
More image processing
Low Cost CMOS
camera
Observed
Object
I2C
SCI
Image 2
Image 3
Programming image
acqusition
Image 4
Control
Process
Enhanced Image
Processing
Image 5
Generate an Alarm
Image 6
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
QE128 Lab—S08/V1 Performance
and Easy Code Migration
TM
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
Performance Comparison
DEMOQE Accelerometer Demonstration Performance Data
30000
20000
S08 (MC9S08QE128)
CPU Cycles
ColdFire V1 (MCF51QE128)
10000
0
Raw data
Rolling Avg.
IIR
Filter
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
Total Application Code Size
Code size (No optimizations)
3000
2500
2000
bytes
1500
1000
500
0
S08 (MC9S08QE128)
ColdFire V1 (MCF51QE128)
1. Right click the mouse in the
accelerometer.c file select the
Disassemble option.
2. Inspect the assembly code generated
3. Open the .map file and check the code
size!
4. Change the MCU back to the
MC9S08QE128 and do the same
verifications!
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc. All other product or service names are
the property of their respective owners. © Freescale Semiconductor, Inc. 2006.
TM
TM