- Computers & electronics
- Software
- Computer utilities
- Development software
- NXP
- 56800/E
- User Guide
- 14 Pages
NXP 56800/E Processor Expert User guide
Processor Expert 56800/E is a software tool that supports development of applications for Freescale 56800/E series of microcontrollers. The user guide provides information on how to use the tool to create, configure, and generate code for embedded applications.
advertisement
Assistant Bot
Need help? Our chatbot has already read the manual and is ready to assist you. Feel free to ask any questions about the device, but providing details will make the conversation more productive.
Document Version
3.1
P
ROCESSOR
E
XPERT FOR
F
REESCALE 56800/E
F
AMILY
Freescale Semiconductor, Inc.
Processor Expert
User Guide
PROCESSOR EXPERT FOR FREESCALE 56800/E FAMILY
SOFTWARE DEVELOPMENT TOOLS FOR 56800/E DESIGNERS
Processor Expert User Guide
Copyright 2010 Freescale Semiconductor, Inc.
PROCESSOR EXPERT is trademark of Freescale Semiconductor, Inc.
CONTENTS
1. About the Product
1.1. Software Product Description
1.2. Benefits
2. Installation
2.1. System Requirements
2.2. Installation Step-by-step
3. Licensing
3.1. CodeWarrior Editions
4. Getting Started with Processor Expert
4.1. About the Tool
4.2. Typical Development Steps
4.3. Supported Components
4.4. Important Information for Beginners
4.5. Information for Advanced Users
5. Support
5.1. Freescale
5.2. WWW
5.3. Emails
6. Contacts
6.1. Freescale
7. Revisions
5
5
6
6
7
4
4
4
5
12
12
12
13
10
10
7
7
11
12
13
14
- 3 -
1 . A B O U T T H E P R O D U C T Chapter
1
Software Product Decription and Benefits
About the Product
S O F T W A R E P R O D U C T D E S C R I P T I O N
This release package contains software tools to support development of applications for
Freescale 56800/E series of microcontrollers.
PROCESSOR EXPERT PLUG-IN is the Processor Expert™ environment integrated into the CodeWarrior IDE application.
COMPONENT WIZARD is a tool for creating user components including examples and its on-line documentation.
B E N E F I T S
• Integrated development environment increases productivity and saves time and cost.
• Usage of the tool minimizes the time to learn the microcontroller.
• All tools have a user friendly time-saving graphical user interface.
• Processor Expert allows rapid prototyping of entire application.
• Processor Expert provides modular, reusable and fully tested functions.
• It’s easy to modify and port the existing implementations using Processor Expert.
• Processor Expert supports all on-chip peripherals and provides design-time settings verifications.
- 4 -
2 . I N S T A L L A T I O N Chapter
2
System Requirements, Installation Process Step-by-Step
Installation
S Y S T E M R E Q U I R E M E N T S
Please refer to README.TXT file.
I N S T A L L A T I O N S T E P - B Y - S T E P
Please follow the CodeWarrior installation process (see CodeWarrior User Guide).
- 5 -
3 . L I C E N S I N G Chapter
3
CodeWarrior and Processor Expert Licensing Options
Licensing
C O D E W A R R I O R E D I T I O N S
Processor Expert plugin is distributed exclusively as a part of the CodeWarrior
Development Studio. There are various CodeWarrior licensing options scaled from a simple free limited version to the fully equipped one.
Please visit the CodeWarrior home page http://www.freescale.com/codewarrior or contact your nearest Freescale distributor for details on availability and ordering.
- 6 -
4 . G E T T I N G S T A R T E D W I T H P R O C E S S O R E X P E R T Chapter
4
First-time Usage of the Processor Expert
Getting Started with Processor Expert
A B O U T T H E T O O L
Processor Expert (PE) is an Integrated Development Environment (IDE) for design, implementation, verification, optimization of the embedded microcontroller applications.
This high productivity development platform allows efficient use of microcontrollers and their peripherals, allows building of portable solutions, and saves development time and cost.
For latest information about the Processor Expert and related tools for 56800/E please visit the website http://www.processorexpert.com
.
Processor Expert has a built-in knowledge (internal definitions) of the entire microcontrollers with all their integrated peripherals. Functional elements are encapsulated using the concept of configurable components (called Components) that provide methods and event subroutines.
An intuitive and powerful graphical UI allows users to define the desired behavior of the system by using components with their settings and drag & drop selections.
The IDE simplifies the utilization of the generated code within the application code.
T Y P I C A L D E V E L O P M E N T S T E P S
This chapter describes a typical development process (step-by-step) and contains recommendations/tips for your first application:
1.
Create a new project, select and configure a CPU components
Start the CodeWarrior
Use the command main menu | File | New...
to create a new application.
Select Processor Expert Stationery in the New dialog window and enter a name of the project.
Select an MCU.
A new Processor Expert project is created and the target CPU component is
- 7 -
2.
3.
4.
5.
displayed in the Processor Expert Project Panel (it is a tab in the project panel of
CodeWarrior). Double-click on the CPU component icon to select it and open
Component Inspector, which allows customizing the component settings. The default settings of the CPU component are suitable for most applications.
Find a component suitable for the desired function in the Component Selector
(using the command Processor Expert | View | Component selector ).
Components are sorted by category in folders.
Processor Expert project consists of building blocks called Embedded Components
. Each component represents encapsulation of functionality of any on-chip peripheral, external peripheral, virtual peripheral or some software algorithm. See section Supported components for more information on supported components and
their functionality.
Double-click on the component name in the Component Selector and the component will be added to your Project. Components of the current project are visible in the
Processor Expert Project Panel.
Configure the behavior of the component by setting its properties, and decide which methods and events will be contained in the generated component modules.
Component Inspector shows Properties, Methods and Events of the selected component.
Properties define the component connection to the target CPU, settings of allocated peripherals, an initialization of the component and other run-time component options.
Methods are functions generated by the Processor Expert and intended to be utilized by the user. Methods are located in the generated code modules, which should not be changed by the user. Each component has got its own module with the same name.
Events are the functions templates, which are called from the component modules like an interrupt service routines. Events are generated into the event module
(events.c) and should be implemented by the user.
Repeat previous two steps to insert all components needed for the desired function.
If exclamation marks are displayed in Project Panel or Component inspector, the component settings are wrong or conflict with each other.
Processor Expert provides powerful design-time verifications, which protects users from the run-time problems and bugs. Error messages are displayed in the third column of the Component Inspector or in the Error Window.
Peripherals settings: Processor Expert verifies if the selected peripheral meet the
Component requirements.
Peripheral allocation: Processor Expert also provides a protection against usage of
- 8 -
6.
7.
8.
9.
one peripheral by several components. If the peripheral is used by one component, its settings cannot be modified by any other component.
Timing: The settings of all timed devices are checked. If no error is detected, it means that you can work with the given settings without problem in runtime.
Generated modules are provided in such a way that they cannot influence each another - it means that, even if several components share one physical device, changes in the component settings using the values given (and checked) by the
Processor Expert is possible in run-time without affecting any other component.
Initiate code generation using the command main menu | Processor Expert
| Generate Code and check the error window. If the code generation was successful (no errors), proceed with the next step.
All the Component modules are generated during code generation process, and the event and main modules are updated (or created if does not exist). See generated
modules in the folder Generated code of the Files tab in the CodeWarrior’s project panel.
The code generation finishes successfully only if the project is set-up correctly.
Utilize component methods by placing their calls into the user modules (the main module, event functions or other user modules). List of methods is available for each component in the Project Panel window. User written code should be only added into the main, event and user modules.
The main function is located in the module with the name same as the project name and it is called immediately after initialization of the CPU and components.
Event handlers are located in the Events module (events.c).
Do not modify other generated component modules. These files are re-generated during every code generation, so any user changes would be lost. For information on advanced options allowing to disable overwriting of the component modules by PE, please see the Processor Expert help.
Build the application and correct errors found by compiler.
CodeWarior integrated development environment allows to build the application automatically. Use command main menu | Project | Make to compile your application. Build and make commands will invoke code generation if it is necessary.
If you need to add another components to your project, go back and continue with step 2
Component Inspector can hide the advanced settings of the component using the predefined view levels: basic, advanced and expert (see the Component
Inspector | Items Visibility menu). Basic level is selected by default and you can get more options for the component by selecting a higher level.
- 9 -
You can add also external user modules to your project.
These are listed in
CodeWarrior Project Panel in the ‘user modules’ folder of the ‘files’ tab. Use the commands Project Panel | User Modules (popup menu)| Add User
Module or Project Panel | User Modules (popup menu)| New User
Module (popup menu is opened using the right mouse button click on the appropriate object).
S U P P O R T E D C O M P O N E N T S
Embedded Component is a component which can be used in Processor Expert. Embedded components encapsulate functionality of basic elements of embedded systems (like CPU core, CPU on-chip peripherals, standalone peripherals, virtual devices, and pure software algorithms) and provide the control of these devices via properties, methods, and events (like objects in Object Oriented Programming). Processor Expert generates modules for Freescale
C Compiler from each component. Each generated module contains initialization of the component and peripheral and optimized code of methods, according to user settings of the component.
All components are listed in the Component Selector window. A component can be added to the project by clicking on the icon or the component name. It provides various ways of searching for component.
When you want to use components you need license that is provided along with the
CodeWarrior. Please see the chapter Licensing for details on licensing information. In the demo mode (without any license) the restricted group of components generates code. For more information see documentation of the CodeWarrior.
I M P O R T A N T I N F O R M A T I O N F O R B E G I N N E R S
You can find the following useful information in the documentation provided with the
Processor Expert :
• Tutorial Courses – step-by-step procedure how to build a simple application in Processor
Expert.
Help | Processor Expert | Tutorial
• Ready to use examples can be opened using the stationery
File | New... | Processor Expert Examples Stationery
• Quick Start - recommendations how to learn the Processor Expert quickly.
Help | Processor Expert | Quick start
- 10 -
• List of Supported Components - list of supported components with link to more detailed description.
Help | Processor Expert | Embedded Components
Processor Expert |View | Installed Components Overview
• Processor Expert main help
Help | Processor Expert | Processor Expert Help
For further information please see also the other documentation included in the CodeWarrior installation.
I N F O R M A T I O N F O R A D V A N C E D U S E R S
• Component Wizard is a tool for a user component construction. The usage of the tool requires a deep knowledge of Processor Expert principles and skills.
- 11 -
5 . S U P P O R T Chapter
5
Support Services
Support
F R E E S C A L E
To obtain an assistance with Processor Expert or any related product for Freescale 56800/E family, please contact the Freescale Technical Support.
W W W http://www.frescale.com/codewarrior
E M A I L S [email protected]
- 12 -
6 . C O N T A C T S
Contacts
F R E E S C A L E
Freescale Semiconductor Inc.
6501 William Cannon Drive West
Austin, Texas 78735
U.S.A.
web: http://www.processorexpert.com
, http://www.freescale.com
.
Chapter
6
Main Contacts
- 13 -
7 . R E V I S I O N S
Revisions
2.6
2.7
2.8
2.9
3.0
3.1
2.2
2.3
2.4
2.5
Version Revision Date
2.0
2.1
April, 2006
October, 2006
April, 2007
July, 2007
August, 2007
October, 2007
April, 2008
April, 2008
November, 2008
April, 2009
June, 2009
Jan 13, 2010
Description - Summary of Changes
Initial public release.
Updated hardware requirements.
Minor changes.
Minor changes.
Minor changes.
Minor layout corrections.
Removed specific HW requirements.
Minor changes.
Minor changes.
Updated contacts and company references.
Beans are now Components.
Updated www links.
Chapter
7
List of Revisions
- 14 -
advertisement
Key Features
- Integrated development environment
- Rapid prototyping
- Modular and reusable functions
- Support for all on-chip peripherals
- Design-time settings verifications