Open/Print
Development Tools Module Introduction
Purpose:
• The intent of this module is to explain the development tools available for
developing applications for the Hybrid Controller Family.
Objectives:
• Describe CodeWarrior basic features and development environment.
• Describe the Processor Expert (Rapid Application Development) tool
basic features and benefits.
• Identify the Evaluation Module (EVM) development boards available.
• Identify the demonstration boards and reference designs available.
Contents:
• 26 pages
• 4 questions
Learning Time:
• 45 minutes
Welcome to this module on the development tools for the 56F800/E family of
Hybrid Controllers. Upon completion of this module, you will be able to
identify the basic features of the MetroWerks CodeWarrior tool suite and the
Processor Expert rapid application development environment. You will also
understand the Hardware tool support available through Evaluation Modules
(EVMs), demonstration boards, and reference designs.
1
56F800/E Development Tools
•
CodeWarrior development tools
•
Processor Expert = SDK++
•
Built-in libraries
•
Evaluation boards
•
Application-specific daughter cards
•
Demos and reference designs
A single CodeWarrior development tool suite supports all products in the 56800/E family,
from the 56F801 to the highest functionality device in the 56F8300 Series. This tool
approach allows the developer to move seamlessly from one device to another in the
toolset, minimizing the effort of right-sizing the device to the final application.
Processor Expert = SDK++. It builds on the excellent development support that the
Software Development Kit (SDK) provides by adding graphical configuration tools and an
object oriented development paradigm without the overhead of C++. Built-in knowledge of
device peripherals aids the developer to correctly set up device peripherals and prevents
resource conflicts.
Built-in libraries provide broad support for a wide range of applications, minimizing
programming and allowing the developer to concentrate on the unique intellectual property
(IP) to be added to create a successful product.
Evaluation modules (EVMs) provide fully functional development hardware and allow
developers to quickly prototype the final product by simple modifications (white wires) of the
EVM. The EVMs contain sockets containing all processor pins for easy connection of
customer application-specific daughter cards. This feature allows developers to quickly
develop a test bed for product ideas. Finally, we provide many demos and reference
designs for applications within the target markets.
2
CodeWarrior Overview
Here you can see the CodeWarrior Project window, Code Analysis Tools, Debugger, and
Memory view. CodeWarrior is a development environment that seamlessly integrates the
project manager, build system, editor, compiler, linker and debugger. It has support for the
56800/E, including integrated EVM support. Its advanced instruction set simulator enables
hardware and software co-design.
In addition, a highly optimized C compiler ensures smallest code size and the fastest
execution time possible. A graphical source-level debugging solves complex problems
quickly and easily, and compiler optimization takes advantage of Digital Signal Processor
(DSP) loop constructs.
CodeWarrior now includes Processor Expert, that provides rapid application development
across the entire 56800/E family.
3
CodeWarrior: Low Cost High Value
• CodeWarrior Development Studio for the 56800
Hybrid Controllers, version 6.0 is the new single
development environment for the entire 56800/E
portfolio.
• New Processor Expert with free drivers and
libraries for all CodeWarrior tiers
• New multi-tiered pricing structure
Memory
size (in
words)
Order #
Price
Supported Processors
up to 8K
CW568XSE
No Charge
56F801, 56F802
up to 32K CW568XC32K
$495
56F803, 56F805, 56F826,
56F8322, 56F8323
up to 64K CW568XC64K
$995
56F807, 56F827, 56F8345,
56F8346
$1,495
56F8356, 56F8357, 56850
over 64K
CW568X
A single development environment for the entire Hybrid Controller Family is
provided, beginning with MetroWerks CodeWarrior version 6.0. One license
enables development for entire 56800/E family.
Processor Expert (PE) replaces SDK and includes all SDK applicationspecific libraries as well as GUI configurable driver support for peripherals.
Many libraries that previously were charged for in the SDK are now available
for free in object code format.
A tiered license structure solves past complaints of tool expense and allows
customers to prototype the tool and the processors. New license prices also
include 1-year maintenance and provides free 24/7 CodeWarrior support.
4
New Features
• Stationery Wizard helps users select processor and target required for
development
• PE Stationery and examples
• Multiple breakpoints in FLASH
• Swap Endian for data display
• Multiple Code Generation Optimizations
• Project windows are docked by default
This is a reference page for the previous page
5
Processor Expert Overview
Key Abstraction Technologies
Processor Expert
PESL
EB
Application Layer
Application Layer
PESL Name Abstraction Layer
How features of PE are achieved:
•
•
•
•
Developed by experienced programmers
of embedded systems
Expert knowledge system is working in
the background of PE and prevents the
misconfiguration of a peripheral
Provides context help and access to
CPU/MCU vendor documentation
All EB delivered by UNIS are tested
according to ISO testing procedures
(UNIS is an ISO-certified company)
EB Hierarchy
HW Abstraction Layer
Encapsulated Functionality
HW
User
EB
EB
HW
PESL: lowest abstraction layer
•
Processor Expert System Library
•
Peripheral oriented
Embedded Bean— highest abstraction provider
•
Functionality oriented
•
Provides easy migration across supported
processors
Processor Expert supports rapid application development and enables
component-oriented programming. If necessary, it provides expert advice. In
addition, it delivers instant functionality of generated code and provides
tested ready-to-use code.
6
Question
What are some of the most important benefits of using Processor
Expert? Select all options that apply.
Supports rapid application development
Enables component-oriented programming
Integrates the project manager, build system, editor, compiler, linker and
debugger
Ensures smallest code size and the fastest execution time possible
Let’s take a moment to review what you’ve learned about PE.
PE supports rapid application development and enables component-oriented
programming. CodeWarrior integrates the project manager, build system, editor,
compiler, linker and debugger, and its complier ensures smallest code size and the
fastest execution time possible.
7
Processor Expert Features
•
Available across 8/16 bit product lines
•
Rapid application development
•
Expert configuration system
•
Instant functionality of generated code
•
Two peripheral programming levels
• Embedded Beans
• PESL
•
Application-specific algorithm libraries
• All SDK algorithm libraries ported
•
Tested and ready-to-use code
PE provides easy migration across the entire 8/16 bit product line by supporting HC08, HCS12, and the entire
Hybrid Controller family: 56F800, 56F820, 56850, and 56F8300.
Rapid application development is achieved by reducing the learning curve of processor-specific register
programming, using code examples, and using application-specific algorithm libraries that are SDK compatible.
The expert configuration system includes GUI-based module selection, Drag-N-Drop software methods, and error
checking in Embedded Beans (EBs) configuration.
PE automatically adds required files to projects based on user selection and configuration of software modules.
For peripherals support, EBs provide peripheral hardware encapsulation that increases portability across different
processors, and PESL provides register level programming through C-macro interfaces. PESL is compatible with
the SDK ioctl interface.
Application-specific algorithm libraries provide off-the-shelf software modules that are typically used in target
market applications.
PE is ISO9000 certified in its development and testing procedures. It was also developed in close communication
with our design teams to ensure feature support and optimal code generation.
8
Algorithm Libraries
Processor Expert contains all SDK application-specific libraries and is fully
compatible. These libraries may be found under the Software (SW) folder in
the Bean Selector.
9
Introduction to PE Demonstration
Purpose:
This demonstration will introduce you to the Processor Expert rapid
application development tool and will show you how to get started with PE.
Tasks:
• Create 56F8323 PE project
ƒ File→New
ƒ Input project name: MyProject
This demonstration will introduce you to the Processor Expert Rapid
Application Development tool and will show you how to get started with PE.
You will see how easy it is to blink one of the red LEDs on the 56F8300
Demo Board. This board uses the 56F8323 device.
First, you need to create a Processor Expert project named “MyProject” by
selecting File->New… from the MetroWerks CodeWarrior menu.
10
Introduction to PE Demonstration
•
•
Select MC56F8232 PE Stationery.
The default project is created.
Next, you select the Processor Expert stationery under the desired target
system, 56F8323 in this case, and the default project is created.
11
Introduction to PE Demonstration
•
•
•
In the Bean Selector window,
select Led Bean.
From the Demo Board
schematic, you can see that the
red LED marked as D10 is
connected to the PWMA0 pin on
the 56F8323.
In the Bean Inspector window,
configure the Led Bean to use
the PWMA0_GPIOA0 output
pin.
At this point, you can select the appropriate EBs required by your particular application from
the Bean Selector window.
Since we want to blink an LED, select the Led Bean found under the CPU external devices>EVM folder as shown here. Since we are using the 56F8300 Demo Board, the predefined
LED Beans associated with the 56F8323 EVM board will not work.
Upon selection of the Led Bean, the Bean Inspector window will appear to allow you to
select the appropriate configuration. From the 56F8300 Demo Board schematic, sheet 1 left
side of the page, you can see that the red LED marked D10 is connected to the PWMA0 pin
on the 56F8323 device. Based on this, it is easy to select the appropriate output pin in the
Bean Inspector window.
12
Introduction to PE Demonstration
Generate Code:
• Select Code Design from the
Processor Expert menu.
• PE will automatically set up
the default project folders and
generate code based on the
Embedded Bean
configurations.
Now that the Led Bean has been configured, you select Code Design under
the PE menu so that PE can generate the appropriate code. PE will
automatically create the default project folders and generate code. Roll your
mouse pointer over each folder to learn more.
13
Question
The Processor Expert Rapid Application Development tool is designed to
be quick and easy to use. Order the first four steps to use this tool by
dragging the numbers on the left to their corresponding steps on the
right. Click “Done” when you are finished.
1
Step 1
2
Select PE stationery from the Project Stationery window.
2
Step 2
1
Create a Processor Expert project from File->New.
3
Step 3
4
Select the appropriate configuration from the Bean
Inspection window.
4
Step 4
3
Select Embedded Beans from the Bean Selector
Window.
Done
Reset
Show
Solution
Let’s review the first four steps for using the Processor Expert Rapid
Application Development tool.
The first step is to create a Processor Expert project from File->New.
Second, select PE stationery from the Project Stationery window, and third,
select Embedded Beans from the Bean Selector Window. The fourth step is
to select the appropriate configuration from the Bean Inspection window.
14
Introduction to PE Demonstration
•
•
Open the main project file MyProject.c and drag and drop the Bean
methods from Led Bean into the main function.
Build and Download the project by clicking the Green Arrow icon.
Now you can drag and drop the bean methods into your application. Here
you can see the LED1_On and LED1_Off methods being added to the main
application function. These functions will turn the red LED on and off.
You can build and download the project by clicking the green arrow icon in
the project window. The red LED will turn on and off by stepping through the
code with the debugger.
15
Question
Order the last four steps to using this tool by dragging the numbers on
the left to their corresponding steps on the right. Click “Done” when you
are finished.
5 Step 5
6
Open the main project file and drag and drop the Bean
methods into the main function.
6
Step 6
5
Select Code Design from the Processor Expert
menu to generate code.
7
Step 7
8
Use the debugger to step through the code.
8
Step 8
7
Build and download the project by clicking the
green arrow icon.
Done
Reset
Show
Solution
Let’s review the final four steps for using the Processor Expert Rapid
Application Development tool.
The fifth step is to select Code Design from the Processor Expert menu to
generate code. Sixth, open the main project file and drag and drop the Bean
methods into the main function. The seventh step is to build and download
the project by clicking the green arrow icon. Finally, the eighth step is to use
the debugger to step through the code.
16
56F8300 Evaluation Boards
•
Fully functional target hardware
ƒ Parallel cable, power supply included
•
CodeWarrior Development Tool
ƒ 8K words complimentary license
ƒ 30-day evaluation license
ƒ Processor Expert
•
Accelerated Development System
Resource Pack
ƒ
ƒ
ƒ
ƒ
ƒ
ƒ
Processor documentation
Product briefs
Application notes
Schematics
Code examples
Exercises
Parallel cable
Windows Host
System
EVM Board
The Hybrid Controller Family is fully supported with EVM target systems that
may be used as reference designs as well as prototyping of application
software. As shown here, all EVM kits include all the tools necessary to
begin application development.
17
Daughter Cards and Demos
Target Application markets
•
•
•
Voice
ƒ Telephony Daughter Card
ƒ Feature Phone
ƒ VRLite1
Industrial
ƒ UPS
ƒ Switch-Mode Power supplies
ƒ AC/DC Power supplies
ƒ Motor Control Briefcase Demos –
BLDC, ACIM, SR
ƒ Power Line Modem
Automotive
ƒ EPAS
ƒ Brake
We provides a number of reference designs and application-specific
daughter cards that may be used in conjunction with the EVM boards to
accelerate your application development time and your time to market.
These cards and demos also enhance learning and provide validation of the
application markets targeted for the specific silicon solution.
18
56F8300 Demonstration Kit
Contents
• Demo Board
• Complimentary permanent license for
CodeWarrior Development Studio with
Processor Expert (up to 8K words)
• Utilizes 60MHz 56F8323 hybrid with on-chip
oscillator
• Integrated MC3794 E-Field sensor
• On-board JTAG-to-Parallel Port command
converter and parallel cable
• Universal power supply
• Preprogrammed sample application
• Accelerated Development System CD
• On-board expansion capabilities for
development activities
• Ordering Part Number and S/R:
ƒ MC56F8300DSK–P ($79.00 )
The 56F8300 Demonstration Kit includes all of the tools necessary for
evaluating the 56F8300 series of processors. The board is designed to allow
for customer population of additional hardware prototyping features such as
the serial port, bench power supply, pin headers, and additional E-Field
sensor connections.
19
56F8300 Demo Applications
Demos included with Demo Kit:
• E-Field Demonstration (preprogrammed)
ƒ Uses ADC to sample e-field sensor input to detect
hand proximity and display the result on LEDs
ƒ Uses Timer (PWM mode) and low cost Codec
circuitry to drive speaker
•
Voice Recording and Playback Demonstration
ƒ Uses ADC to sample microphone input
ƒ Stores 7 seconds of G711 encoded samples in
FLASH
ƒ Uses low cost Codec for playback
•
Temperature Sensor Demonstration
ƒ Uses ADC to sample internal temperature sensor
ƒ Displays results on LEDs
ƒ Controls temperature by turning clocks on/off to onchip peripherals
•
Fast Interrupt Demonstration
ƒ Sets up two timer interrupts in normal and fast
modes.
ƒ Measures and displays interrupt overhead for normal
and fast modes
The 56F8300 demonstration board comes with the application demos listed
here. It is preprogrammed with the E-Field demo application to provide an
immediate out-of-the-box, hands-on example of some of the DSP and MCU
functionality. The remaining demos are provided on the Accelerated
Development System CD included in the kit.
20
MC33794 E-Field Sensor
•
•
•
•
•
•
•
•
Supports up to 9 electrodes and 2
references
Shield Driver to Reduced Cable
Capacitance Circuit
+5 Volt regulator to power external
circuit
ISO9141 Physical Layer Interface
Lamp Driver Output
Watchdog and Power on Reset
Timer
High Purity Sine Wave Generator
tunable with external resistor
Evaluation Module available
(KIT33794DEVM)
About 5V p-p
Level Proportional to 1/C
Detector
Low Pass
Load Resistor
Level
Decreases
with
Increasing
Capacitance
Sine Generator
(120 KHz)
Electrode Capacitance
Typical applications:
•
•
•
•
•
•
•
Sensing a hand holding a handle
Touch switches
Sensing liquid levels
Sensing the presence of liquids
Sensing a hand (gloved or not) touching a safe
Sensing a mouse – Building the ultimate mouse trap
More to follow…
Here you can see some of the features and uses of the MC33794 E-Field
Sensor. The E-Field Sensor used on the 56F8300 demo board is one of the
newest Analog Sensor products. Its most notable application is for vehicle
passenger sensing of children to disable airbag inflation.
21
56F800 Demonstration Kit
Contents:
• Demo Board
• Utilizes 60MHz 56F801A hybrid with on-chip
oscillator
• Complimentary CodeWarrior License
ƒ 8K word Program Memory Limit
• On-board JTAG-to-Parallel Port command
converter and parallel cable
• Preprogrammed sample application
• Accelerated Development System CD
• On-board expansion capabilities for
development activities
• Power supply
• Kit Installation Guide
Ordering Part Number (suggested pricing):
• DSP56F800DEMO
ƒ $49.95 (US power supply)
•
DSP56F800DEMO-E
ƒ $64.95 (International power supply)
The 56F800 Demonstration Kit includes all the tools necessary for evaluating
the 56F800 series of processors. The board is designed to allow for
customer population of additional hardware prototyping features such as the
serial port, bench power supply, and pin headers.
22
56F800 Demo Applications
Functionality demos included with demo kit:
•
Quad Timer Flashing LEDs
• Uses Quad Timer and Quad Timer Compare
capabilities
•
Timer Driver Flashing LEDs
•
Frequency Spectrum with Amplitude
• Uses Timer Peripherals and clock capabilities
• Uses ADC, PWM, and GPIO to perform FFT on
sampled data to determine and display frequency
content and amplitude of analog signal
•
Frequency Spectrum without Amplitude
• Uses ADC, PWM, and GPIO to perform FFT on
sampled data to determine frequency content of
analog signal
•
Frequency Detector
• Exercises ADC, PWM and GPIO to perform FFT on
sampled data to determine frequency content of
analog signal. Uses LEDs connected to PWM and
GPIO to display binary representation of the strongest
frequency detected.
•
Potentiometer Controlled LEDs
• Uses ADC, PWM, and GPIO. Voltage Divider
controlled by a Potentiometer samples ADC, and via
LEDs connected to PWM and GPIO, displays
amplitude of signal.
The 56F800 demonstration board comes with the application demos listed
here. It is preprogrammed with the Frequency Spectrum with Amplitude
application to provide an immediate out-of-the-box, hands-on example of
some of the DSP and MCU functionality. The remaining demos are provided
on the Accelerated Development System CD included in this kit.
23
56800/E Reference Designs
Industrial
•
•
•
•
•
UPS reference design in development
Powerline modem
Switch mode power supply in definition
Low-cost 56F800
Motor control demos
ƒ
ƒ
ƒ
ƒ
BLDC
Switch reluctance
Sensorless ACIM
Stepper motors
Vehicle
• Resolver demo
• Hybrid braking demo
Voice
• Speaker feature phone
• Hands-free (AEC/NS)
• Voice recognition
Here you can see some additional demos and reference designs that are
available to assist customers in designing applications …targeted by the
Hybrid Controller Family. Each demo or reference design comes complete
with the hardware platform, schematics, and software that is made available
to accelerate customers time to market. Contact your local distributor to
schedule a viewing of any one of these demos.
24
FLASH Programming Solutions
•
•
•
•
•
800 words per second
MetroWerks CodeWarrior
ƒ Parallel port
BP Microsystems
ƒ Bulk device programmer
Domain Technologies
ƒ Assortment of communication
interfaces
ƒ Custom off-chip FLASH
FLASH over JTAG utility
ƒ Source code available
Serial/CAN Bootloader
• Serial: 2.6K W/sec
• CAN: 3.7K W/sec
• Source code available
Relative Unit Cost (w/out hidden costs)
JTAG/OnCETM Port
Distributor
Programmed
FLASH
Factory
Programmed
FLASH
Customer
Programmed
FLASH
Pre-assembly
Most flexible,
requires prod.
infrastructure
Flexible, no NRE for
1K+ orders
Customer
Programmed
FLASH
In-circuit
Less flexible
0-1
1-2
4–6
6 – 12
Lead-time in Weeks
Distributor Programming
Parallel Programming Mode
• Preassembly programming
• 91K W/sec (Program)
• See local distributor
• 47K W/sec (Boot/Data)
• Requires NDA and factory support
Factory Programming
ƒ
ƒ
ƒ
Lead time
Fee based
Minimum quantity
required
The JTAG/OnCE Port chip interface provides the widest variety of FLASH programming
solutions. Metrowerks provides a parallel port programming solution that is included with the
CodeWarrior development tool, and BP Microsystems provides a bulk device programming
solution for pre-assembly programming. Domain Technologies supports an assortment of
communication interfaces including parallel port and USB as well as providing custom
solutions for programming off-chip FLASH devices. Finally, we provides a DOS-based utility
that communicates via the parallel port. Source code is available for feature customization.
All FLASH-based Hybrid Controllers come factory programmed with a bootloader that can
accept an S-record formatted application over the serial port of the device. Source code is
available for feature customization.
This high speed option is available under Non-Disclosure Agreement. It is the fastest
programming option and requires specific target system design criteria to provide in-circuit
programming. Up to 91K for Program flash since it is interleaved and 47K for Boot/Data
Flash. Contact factory for details.
Customers may provide their production application to a participating distributor. The
production application can then be programmed directly into the chip prior to delivery.
Customers may provide their production application to us to be programmed directly into the
chip prior to delivery.
25
Question
What are some of the components of EVM kits? Select all options
that apply.
Accelerated Development System Resource Pack
CodeWarrior Development Tool
PC development station
Fully functional target hardware
Let’s take a few moments to review what you’ve learned about EVM kits.
Fully functional target hardware, an Accelerated Development System Resource
Pack CD, and the CodeWarrior Development Tool are among the items provided in
EVM kits. You will need to supply a laptop or PC for the development of your
application code.
26
Module Summary
• Describe CodeWarrior basic features and development
environment.
• Describe the Processor Expert (Rapid Application Development)
tool basic features and benefits.
• Identify the Evaluation Module (EVM) development boards
available.
• Identify the demonstration boards and reference designs
available.
Now that you have completed this module, on the 56800/E FLASH-based
Hybrid Controllers, you should be able to identify the basic features of the
MetroWerks CodeWarrior tool suite and the Processor Expert rapid
application development environment. You should also understand the
Hardware tool support available through Evaluation Modules (EVMs),
demonstration boards, and reference designs.
27
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising