AN236 Silicon_Laboratories, AN236 Datasheet

no-image

AN236

Manufacturer Part Number
AN236
Description
Manufacturer
Silicon_Laboratories
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN236
Quantity:
5 510
Part Number:
AN236
Manufacturer:
MOT
Quantity:
5 510
Part Number:
AN2365S
Manufacturer:
Nat
Quantity:
7 580
I
S
1. Introduction
This application note describes how to integrate the IAR
8051 Tools into the Silicon Laboratories IDE (Integrated
Development Environment). Integration provides an
efficient development environment with compose, edit,
build, download and debug operations integrated in the
same program.
2. Key Points
3. Create a Project in the Silicon
A project is necessary in order to link assembly files
created by the compiler and build an absolute “OMF-51”
output file. Follow these steps to create a project:
1. Under the “Project” menu, select “Add Files to
2. To add files to the build process, right-click on the file
3. Under the “Project” menu, select “Save Project
Rev. 0.3 1/07
N T E G R A T I N G
I L I C O N
The Intel OMF-51 absolute object file generated by
the IAR 8051 tools enables source-level debug from
the Silicon Laboratories IDE.
Once IAR Tools are integrated into the IDE, they are
called by simply pressing the “Assemble/Compile
Current File” button or the “Build/Make Project”
button.
See the included software, AN236SW, for an
example using the IAR tools.
Information in this application note applies to
Version 2.90 and later of the Silicon Labs IDE and
Version 4.05 and later of the IAR 8051 Tools.
Project...”. Select the “C” source files that you want
to add, and click “Open”. Continue adding files until
all project files have been added.
name in the “Project Window”, and select “Add
filename to build”.
As...”. Enter a project work space name, and click
“Save”.
Laboratories IDE
L
A B O R A T O R I E S
I AR 80 5 1 T
Copyright © 2007 by Silicon Laboratories
IDE
O O L S I N T O T H E
4. Configure the Tool Chain
Under
Integration” to bring up the dialog box shown below.
First, select “IAR” from the “Select Tool Vendor” drop-
down list. Next, define the IAR assembler, compiler, and
linker as shown in the following sections.
The IDE will first look in the registry for the installed path
to
compiler, and linker; otherwise, the default locations are
as follows:
assembler: “C:\Program Files\IAR Systems\Embedded
Workbench 4.05\8051\bin\a8051.exe”
compiler: “C:\Program Files\IAR Systems\Embedded
Workbench 4.05\8051\bin\icc8051.exe”
linker:
Workbench 4.05\common\bin\xlink.exe”
4.1. Assembler Definition
1. Under the “Assembler” tab, if the assembler
2. Enter any additional command line flags directly in
3. See the following figure for the “Assembler” tab with
executable is not already defined, click the browse
button next to the “Executable:” text box, and locate
the assembler executable.
the “Command Line Flags” box.
the default IAR settings.
Integration Dialog
the
the
“C:\Program
IAR
“Project”
Embedded
Files\IAR
menu,
Workbench's
select
AN236
Systems\Embedded
“Tool
assembler,
AN236
Chain

Related parts for AN236

AN236 Summary of contents

Page 1

... Once IAR Tools are integrated into the IDE, they are called by simply pressing the “Assemble/Compile Current File” button or the “Build/Make Project” button. See the included software, AN236SW, for an example using the IAR tools. Information in this application note applies to Version 2.90 and later of the Silicon Labs IDE and Version 4 ...

Page 2

... AN236 4.2. Compiler Definition 1. Under the “Compiler” tab, if the compiler executable is not already defined, click the browse button next to the “Executable:” text box, and locate the compiler executable. 2. Enter any additional command line flags directly in the “Command Line Flags” box. ...

Page 3

... If the “Run to main() on code download.” box is checked, the target board will halt at the first line in main() when the “Download code” button is pressed. Rev. 0.3 AN236 3 ...

Page 4

... Blink.r51). Once you have updated your Embedded Workbench tools to Version 7.10 or greater, you will need to override the configuration file named lnk51ew.xcl located on your computer in the folder "..\IAR Systems\Embedded Workbench 4.05\8051\config”. The updated file is included with the AN236SW software example. Rev. 0.3 ...

Page 5

... WDTCN = 0xad; SFRPAGE = 0x0F; PORT_Init (); SFRPAGE = 0x01; Timer3_Init (SYSCLK / 0x90; SFRPAGE = 0x00; // Timer3 reload value // Timer3 counter // approximate SYSCLK frequency Switch to configuration page // Switch to Timer 3 page // Init Timer3 to generate interrupts // rate. // Page to sit in for now Rev. 0.3 AN236 5 ...

Page 6

... AN236 while ( //------------------------------------------------------------------------------------ // PORT_Init //------------------------------------------------------------------------------------ // // Configure the Crossbar and GPIO ports // void PORT_Init (void) { XBR2 = 0x40; P1MDOUT |= 0x40; } //------------------------------------------------------------------------------------ // Timer3_Init //------------------------------------------------------------------------------------ // // Configure Timer3 to auto-reload and generate an interrupt at interval // specified by <counts> using SYSCLK/12 as its time base void Timer3_Init (int counts) { TMR3CN = 0x00; RCAP3 = -counts; TMR3 = 0xff; ...

Page 7

... OCUMENT HANGE IST Revision 0.1 to Revision 0.2 Updated "7. IAR Considerations" on page 4. Revision 0.2 to Revision 0.3 Updated paths to IAR tools to support Version 4.05. Updated supported version of the IDE to Version 2.90. Added bullet on front page to specify supported toolset versions. Rev. 0.3 AN236 7 ...

Page 8

... AN236 C I ONTACT NFORMATION Silicon Laboratories Inc. 400 West Cesar Chavez Austin, TX 78701 Tel: 1+(512) 416-8500 Fax: 1+(512) 416-9669 Toll Free: 1+(877) 444-3032 Email: MCUinfo@silabs.com Internet: www.silabs.com The information in this document is believed to be accurate in all respects at the time of publication but is subject to change without notice. ...

Related keywords