development tools module introduction - freescale semiconductor
TRANSCRIPT
1
Development Tools Module IntroductionPurpose:
• 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:• 27 pages• 4 questions
Learning Time:• 45 minutes
Welcome to this module on the development tools for the 56800/E family of Hybrid Controllers. Upon completion of this module, you will be able to identify the basic features of the 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.
2
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.
3
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.
4
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
over 64K CW568X $1,495 56F8356, 56F8357, 56850
A single development environment for the entire Hybrid Controller Family is provided, beginning with CodeWarrior version 6.0. One license enables development for entire 56800/E family.
Processor Expert (PE) replaces SDK and includes all SDK application-specific 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.
5
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
Reference information for previous slide
6
Processor Expert
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)
HW
Name Abstraction Layer
PESL EB
Application Layer
HW
HW Abstraction LayerEncapsulated Functionality
EB Hierarchy
PESL
Application Layer
User EB
EB
Key Abstraction Technologies
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 OverviewMouse over the Processor Expert, PESL, and EB graphics to learn more.
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. Roll your mouse pointer over the Processor Expert, PESL, and EB graphics to learn more.
7
QuestionWhat 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.
Correct. 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.
8
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.
9
Tools Library• Cycle Count, FIFO,
FileIO, Test
Memory Manager• Dynamic allocation
Algorithm Libraries
Modem Library• V.8bis, V.21, V.22bis,
V.42bis
Telephony Library• AEC, AGC, Caller ID,• CAS, CPT, CTG, DTMF• G165, G168, G711• G723, G726, G729
Security Library• RSA, DES, 3DES,
Math Libraries• Matrix, Fractional, Vector• Trigonometric
Feature Phone Library• CallerID type 1&2 • CallerID Parser • Generic Echo Cancellor Motor Control
• BLDC, ACIM, SR motor specific algorithms
• General purpose algorithms
DSP Library• FIR, IIR, FFT, Auto
Correlation, Bit Reversal
Mouse over the highlighted libraries to learn more.
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. Roll your mouse pointer over each of the highlighted libraries in the graphic to learn more.
10
Introduction to PE DemonstrationPurpose:
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→NewInput 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 CodeWarrior menu.
11
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.
12
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 the56F8323 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.
13
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.
Mouse over the project folders to learn more.
Support: Metrowerks support libraries
Startup Code: code executed prior to execution of the function “main( )” to initialize the C environment
Generated Code: code generated by Processor Expert based on Bean configurations
User Modules: user workspace that includes the C file containing the function “main ( )”
Doc: PE generated files that document the beans selected for the project
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.
14
2
Done Reset ShowSolution
1 2
3 4
1
4
Create a Processor Expert project from File->New.
Select PE stationery from the Project Stationery window.
Select the appropriate configuration from the Bean Inspection window.
Select Embedded Beans from the Bean Selector Window.
QuestionThe 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.
3
Step 1
Step 2
Step 3
Step 4
Let’s review the first four steps for using the Processor Expert Rapid Application Development tool.
Correct. 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.
15
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.
16
6
Done Reset ShowSolution
5 6
7 8
5
8
Open the main project file and drag and drop the Bean methods into the main function.
Use the debugger to step through the code.
Build and download the project by clicking the green arrow icon.
QuestionOrder 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.
7
Step 5
Step 6
Step 7
Step 8
Select Code Design from the Processor Expert menu to generate code.
Let’s review the final four steps for using the Processor Expert Rapid Application Development tool.
Correct. 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.
17
56F8000 Demonstration KitContents• Demo Board• Complimentary permanent license for
CodeWarrior Development Studio with Processor Expert
• Utilizes on-chip oscillator• JTAG-to-Parallel Port command converter
and parallel cable• Power supply• Preprogrammed sample application• Accelerated Development System CD• On-board expansion capabilities for
development activities• Ordering Part Number and SRP:
• DEMO56F8013 ($64.95 )• DEMO56F8013-E ($74.95 )• DEMO56F8014 ($79.95 )
This family is supported with a full set of low cost Evaluation boards that will help you evaluate and prototype this device for your applications. The 56F8000 Demonstration Kit contains all the materials required to begin development including code examples and exercises within CodeWarrior and on the Accelerated Development System CD.
18
56F8300 Evaluation Boards
• Fully functional target hardwareParallel cable, power supply included
• CodeWarrior Development Tool8K words complimentary license 30-day evaluation licenseProcessor Expert
• Accelerated Development SystemResource Pack
Processor documentation Product briefsApplication notesSchematicsCode examplesExercises
Windows Host System EVM Board
Parallel cable
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.
19
Daughter Cards and DemosTarget Application markets• Voice
Telephony Daughter Card Feature PhoneVRLite1
• IndustrialUPSSwitch-Mode Power suppliesAC/DC Power suppliesMotor Control Briefcase Demos –BLDC, ACIM, SRPower Line Modem
• AutomotiveEPASBrake
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.
20
56F8300 Demonstration KitContents• 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.
21
56F8300 Demo ApplicationsDemos 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 LEDsUses Timer (PWM mode) and low cost Codec circuitry to drive speaker
• Voice Recording and Playback DemonstrationUses ADC to sample microphone inputStores 7 seconds of G711 encoded samples in FLASH Uses low cost Codec for playback
• Temperature Sensor DemonstrationUses ADC to sample internal temperature sensorDisplays results on LEDsControls temperature by turning clocks on/off to on-chip peripherals
• Fast Interrupt DemonstrationSets 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.
22
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)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…
Electrode Capacitance
Detector Low Pass
LevelDecreases
withIncreasing
Capacitance
Load Resistor
Sine Generator(120 KHz)
About 5V p-p Level Proportional to 1/C
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.
23
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)
56F800 Demonstration Kit
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.
24
Functionality demos included with demo kit:• Quad Timer Flashing LEDs
• Uses Quad Timer and Quad Timer Compare capabilities
• Timer Driver Flashing LEDs• Uses Timer Peripherals and clock capabilities
• Frequency Spectrum with Amplitude• 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.
56F800 Demo Applications
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.
25
56800/E Reference DesignsIndustrial• UPS reference design in development• Powerline modem• Switch mode power supply in definition• Low-cost 56F800• Motor control demos
BLDCSwitch reluctanceSensorless ACIMStepper motors
Vehicle• Resolver demo• Hybrid braking demoVoice• 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.
26
Distributor Programming• Preassembly programming• See local distributor
JTAG/OnCETM Port• 800 words per second• CodeWarrior
Parallel port• BP Microsystems
Bulk device programmer• Domain Technologies
Assortment of communication interfacesCustom off-chip FLASH
• FLASH over JTAG utilitySource code available
FLASH Programming Solutions
Serial/CAN Bootloader• Serial: 2.6K W/sec • CAN: 3.7K W/sec• Source code available
FactoryProgrammed
FLASH
CustomerProgrammed
FLASHIn-circuit
DistributorProgrammed
FLASH
Lead-time in Weeks
4 – 6 6 – 121 - 20 - 1R
elat
ive
Uni
t Cos
t (w
/out
hid
den
cost
s)
Most flexible, requires prod. infrastructureFlexible, no NRE for 1K+ orders
Less flexible
CustomerProgrammed
FLASHPre-assembly
Factory ProgrammingLead timeFee basedMinimum quantity required
Parallel Programming Mode• 91K W/sec (Program)• 47K W/sec (Boot/Data)• Requires NDA and factory support
The JTAG/OnCE Port chip interface provides the widest variety of FLASH programming solutions. CodeWarriorprovides 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.
27
QuestionWhat 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.
Correct.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.
28
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
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.