5/12/2015

PowerPac -- QuickStart Card

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----QuickStart-Card_9989.html

Installing IAR PowerPac™ for MSP430
The installation of IAR PowerPac for MSP430 requires that a compatible version of IAR
Embedded Workbench for MSP430 is installed on the PC. Check the file readme.htm
on the installation CD for information about compatible versions of IAR Embedded
Workbench for MSP430.
Step by step installation
1. Shut down IAR Embedded Workbench for MSP430.
2. Insert the IAR PowerPac for MSP430 installation CD. The installation program
should start automatically. If it does not, start autorun.exe from the CD.
3. Select Install IAR PowerPac™ for MSP430.
4. You must accept the license agreement when prompted. By selecting I accept the
terms of the license agreement, you confirm that you have read and understood
the license agreement.

PowerPac -- IAR PowerPac™ USB User Guide

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----IAR-PowerPac-USB-User-Guide_9992.html

START WITHOUT USING AN EXAMPLE PROJECT
The best and easiest way to get started is to take a look at the IAR PowerPac USB example projects. IAR PowerPac
USB provides USB device drivers for some USB controllers. Using one of these drivers makes it easy to get the target
up and running. Refer to section Available USB drivers on page 93 for a list of all supported devices and their valid
identifiers.
If you are going to use IAR PowerPac USB with your own hardware, you might have to write your own device driver.
A driver template for the implementation is supplied. The template is located in
the<$TOOLCHAIN_DIR$>\PowerPac\USB\Example\Driver\ directory. If you do not want to start with one of the
supplied example projects, you have to perform the following steps to get the target system to behave like a mass storage
device or generic bulk device on the USB bus:

PowerPac -- IAR PowerPac™ TCP/IP Stack User Guide

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----IAR-PowerPac-TCP-IP-Stack-User-Guide_9993.html

ADDING THE TCP/IP STACK TO AN EXISTING PROJECT
If you want to use the TCP/IP stack in an existing project, you have to add the IAR PowerPac TCP/IP library consistent
to your project requirements.
1 Select Project | Add files and select Library/Object Files (*.r*, *.a, *.o) in the Files of type list. The default
location of the prebuilt IAR PowerPac TCP/IP libraries is Powerpac\TCPIP\Lib. Choose the library of your choice
and confirm it with the Open button.
2 Add the compatible configuration file to your project (for example, IP_Config_SAM7X.c). The configuration file is
located in the corresponding driver subdirectory of the TCPIP\Example\Config directory.
3 You have to add the include path to your project settings. The include path is the path in which the compiler looks for
include files. In cases where the included files (typically header files, .h) do not reside in the same directory as the C
file to compile, an include path needs to be set. To build the project with the added library, choose Project | Options |
C/C++ Compiler | Preprocessor and add the following path to the Additional include directories field:

PowerPac -- IAR PowerPac™ RTOS for ARM Cores

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----IAR-PowerPac-RTOS-for-ARM-Cores_9994.html

Required files for an IAR PowerPac RTOS application
To build an application using IAR PowerPac RTOS, the following files from your IAR PowerPac RTOS distribution
are required and have to be included in your project:
● RTOS.h available in the subfolder RTOS\Inc\.
This header file declares all IAR PowerPac RTOS API functions and data types and has to be included in any
source file that uses IAR PowerPac RTOS functions.
● RTOSInit_*.c available in the BoardSupport\[Manufacturer]\[CPU]\Setup subfolder.
It contains hardware-dependent initialization code for IAR PowerPac RTOS timer.
● One IAR PowerPac RTOS library available in the subfolder RTOS\Lib\.

IAR PowerPac™ RTOS User Guide

http://www.cadfamily.com/a/EDA_PCB/ARM/IAR-PowerPac-RTOS-User-Guide_9996.html

PRIORITY-CONTROLLED SCHEDULING ALGORITHM
In real-world applications, different tasks require different response times. For example, in an application that controls
a motor, a keyboard, and a display, the motor usually requires faster reaction time than the keyboard and display. While
the display is being updated, the motor needs to be controlled. This makes preemptive multitasking a must. Roundrobin might work, but because it cannot guarantee a specific reaction time, an improved algorithm should be used.
In priority-controlled scheduling, every task is assigned a priority. The order of execution depends on this priority. The
rule is very simple:

PowerPac -- IAR PowerPac™ GUI User Guide Graphic library

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----IAR-PowerPac-GUI-User-Guide-Graphic-library-wi_9997.html

Using the simulator
The IAR PowerPac GUI simulator requires Microsoft Visual C++ (version 6.00 or higher) and the integrated
development environment (IDE) which comes with it. You will see a simulation of your LCD on your PC screen, which
has the same resolution in X and Y and can display the exact same colors as your LCD once it has been properly
configured. The entire graphic library API and window manager API of the simulation are identical to those on your
target system; all functions will behave in the very same way as on the target hardware since the simulation uses the
same C source code as the target system. The difference lies only in the lower level of the software: the LCD driver.
Instead of using the actual LCD driver, the PC simulation uses a simulation driver which writes into a bitmap. The
bitmap is then displayed on your screen using a second thread of the simulation. This second thread is invisible to the
application; it behaves just as if the LCD routines were writing directly to the display.

PowerPac -- ORTI Plug-in for the IAR Embedded Workbench C-SP

http://www.cadfamily.com/a/EDA_PCB/ARM/PowerPac----ORTI-Plug-in-for-the-IAR-Embedded-Workbench-C-SP_10000.html

General Inspection Windows
The other windows shown on the ORTI view menu are inspection windows of different kind. The number
and type of windows depend on the information in the ORTI input file.
Inspection window context menu
The context menu available in an inspection
window provides commands to:
• Automatically resize column widths.
• Toggle gridlines on or off. On is marked with a
check mark.
Note: When gridlines are shown and column
widths are resized the window contents
may flicker during redraw
• Numeric value display, binary octal, decimal, or
hexadecimal. The current display type is marked
with a check mark.
• View properties of the item pointed to by the
cursor.