AT89LP Developer Studio - User guide.pdf

(830 KB) Pobierz
3711B.book
AT89LP Developer Studio
....................................................................................................................
User Guide
3711B–MICRO–04/10
439133162.008.png 439133162.009.png 439133162.010.png
Table of Contents
Section 1
1.1 About AT89LP Developer Studio ....................................................................................... 1-1
Section 2
2.1 Installing AT89LP Developer Studio .................................................................................. 2-1
2.1.1 System Requirements ......................................................................................... 2-1
2.1.2 Software Installation ............................................................................................ 2-1
2.2 Issues and Special Considerations.................................................................................... 2-2
2.2.1 .NET .................................................................................................................... 2-2
2.2.2 Java Runtime Environment.................................................................................. 2-2
2.3 Contact Information............................................................................................................ 2-3
Section 3
3.1 General Information ........................................................................................................... 3-1
3.2 Main Elements of LP Studio............................................................................................... 3-1
3.2.1 Solution View ....................................................................................................... 3-2
3.2.2 Output View ......................................................................................................... 3-2
3.2.3 Watch List ............................................................................................................ 3-2
3.3 Launching LP Studio and using the Project Wizard........................................................... 3-3
3.3.1 Open Existing Projects ........................................................................................ 3-3
3.3.2 Creating New Projects ......................................................................................... 3-3
Section 4
4.1 Terminology ....................................................................................................................... 4-1
4.2 Control Signals................................................................................................................... 4-1
4.3 Breakpoints ........................................................................................................................ 4-1
4.4 Debug Example ................................................................................................................. 4-2
4.5 Loading the Project ............................................................................................................ 4-2
4.6 Targeting the Simulator......................................................................................................4-3
4.7 Assemble the Program ..................................................................................................... 4-3
4.8 Entering Debug Session .................................................................................................... 4-3
4.8.1 Inspect the Internal State of the Microcontroller .................................................. 4-3
4.8.2 Issue Debug commands ...................................................................................... 4-3
4.8.3 Monitor the Target Registers ............................................................................... 4-3
4.8.4 Setting Breakpoints ............................................................................................. 4-3
4.8.5 Execute the Code and Halt on Breakpoint........................................................... 4-4
4.8.6 Single Step .......................................................................................................... 4-4
4.8.7 Execute the Code ................................................................................................ 4-4
AT89LP Developer Studio User Guide
i
3711B–MICRO–04/10
439133162.011.png 439133162.001.png 439133162.002.png
Table of Contents (Continued)
4.8.8 Exit Debug ........................................................................................................... 4-4
Section 5
5.1 File View ............................................................................................................................ 5-1
5.2 I/O View ............................................................................................................................. 5-1
5.3 Info View ............................................................................................................................ 5-2
5.4 Project Configuration View................................................................................................. 5-3
5.5 Build View .......................................................................................................................... 5-3
5.6 Debug View........................................................................................................................ 5-4
5.7 Watch List .......................................................................................................................... 5-4
5.8 Static Memory View ...........................................................................................................5-5
5.9 Editor Window.................................................................................................................... 5-5
5.10 Calculator Window ............................................................................................................. 5-5
5.11 Disassembly View.............................................................................................................. 5-8
5.12 Breakpoints ........................................................................................................................ 5-8
5.12.1 Types of Breakpoints ........................................................................................... 5-8
5.12.2 Range Breakpoints .............................................................................................. 5-9
5.12.3 Data Breakpoints ................................................................................................. 5-9
5.12.4 Link Breakpoints .................................................................................................. 5-9
5.12.5 Setting Breakpoints in the LP Studio User Interface............................................ 5-9
5.12.6 Adding Breakpoints .......................................................................................... 5-10
5.12.7 Removing Breakpoints....................................................................................... 5-10
5.12.8 Debugging with Breakpoints and Advanced Breakpoints .................................. 5-11
Section 6
6.1 Assembler and Compiler.................................................................................................... 6-1
Section 7
7.1 AT89LP Developer Menu................................................................................................... 7-1
7.2 File Menu ........................................................................................................................... 7-1
7.3 Edit Menu........................................................................................................................... 7-2
7.4 Debug Menu ...................................................................................................................... 7-3
7.5 Tools Menu ........................................................................................................................ 7-3
7.6 Chip Menu.......................................................................................................................... 7-4
7.7 View Menu ......................................................................................................................... 7-4
7.8 Window Menu .................................................................................................................... 7-5
7.9 Help Menu.......................................................................................................................... 7-5
7.10 Standard Toolbar ............................................................................................................... 7-6
7.11 Edit Toolbar........................................................................................................................ 7-6
7.12 Debug Toolbar ................................................................................................................... 7-6
7.13 Flow Control Toolbar.......................................................................................................... 7-6
ii
AT89LP Developer Studio User Guide
3711B–MICRO–04/10
439133162.003.png 439133162.004.png
Table of Contents (Continued)
Section 8
8.1 Port and Link Configuration ............................................................................................... 8-1
8.2 Programming Fuses........................................................................................................... 8-2
8.3 Programming Flash Security/Lock ..................................................................................... 8-3
8.4 Programming the Signature ............................................................................................... 8-3
Section 9
9.1 Revision History ................................................................................................................. 9-1
AT89LP Developer Studio User Guide
iii
3711B–MICRO–04/10
439133162.005.png
Section 1
Introduction
1.1
About AT89LP Developer Studio
Welcome to AT89LP Developer Studio from Atmel ® Corporation. The AT89LP Developer Studio (“LP
Studio”) is an Integrated Development Environment (IDE) for Atmel’s innovative family of LP (Low
Power) single-cycle 8051 microcontrollers. LP Studio is designed for Microsoft Windows ® 2000/Micro-
soft Windows XP/Microsoft Windows Vista ® .
LP Studio IDE allows project management, code-entry text editing, cycle-accurate simulation, In-Circuit-
Emulation, and On-Chip-Debug. LP Studio allows for developing application code either in Assembly
Code or C-Programming languages.
The advanced cycle-accurate LP Studio simulator enables designers to minimize the system frequency
while still meeting the throughput requirements of the application. This is especially beneficial for design-
ing low-power, battery-operated systems.
LP Studio is a powerful development tool for LP applications. It can be downloaded for free by visiting
Atmel’s website at www.atmel.com .
Thank you for choosing Atmel AT89LP.
AT89LP Developer Studio User Guide
1-1
3711B–MICRO–04/10
439133162.006.png 439133162.007.png
Zgłoś jeśli naruszono regulamin