Download Rabbit 2000 Microprocessor Designer`s Handbook
Transcript
5.2.4 The Stack Segment..................................................................................................................26 5.2.5 The Extended Memory Segment.............................................................................................26 5.3 How The Compiler Compiles to Memory ...............................................................................................26 5.3.1 Placement of Code in Memory................................................................................................26 5.3.2 Paged Access in Extended Memory........................................................................................27 6 The Rabbit BIOS..................................................................................................................29 6.1 6.2 6.3 6.4 6.5 7 Startup Conditions Set Up By the BIOS..................................................................................................30 BIOS Flowchart .......................................................................................................................................31 Internally Defined Macros.......................................................................................................................32 Modifying the BIOS ................................................................................................................................32 Origin Statements to the Compiler ..........................................................................................................34 6.5.1 Origin Statement Syntax .........................................................................................................34 6.5.2 Origin Statement Semantics ....................................................................................................34 6.5.3 Origin Statement Examples.....................................................................................................36 6.5.4 Origin Directives in Program Code.........................................................................................37 The System ID Block ...........................................................................................................39 7.1 Definition of SysIDBlock ........................................................................................................................40 7.2 Access ......................................................................................................................................................41 7.2.1 Reading the System ID Block .................................................................................................41 7.2.2 Writing the System ID Block ..................................................................................................41 7.3 Determining the Existence of the System ID Block................................................................................42 8 BIOS Support for Program Cloning.....................................................................................45 8.1 Overview of Cloning ...............................................................................................................................45 8.1.1 Evolution of Cloning Support .................................................................................................46 8.2 Creating a Clone ......................................................................................................................................46 8.2.1 Steps to Enable and Set Up Cloning .......................................................................................46 8.2.2 Steps to Perform Cloning ........................................................................................................46 8.2.3 LED Patterns ...........................................................................................................................47 8.3 Cloning Questions ...................................................................................................................................47 8.3.1 MAC Address..........................................................................................................................47 8.3.2 Different Flash Sizes ...............................................................................................................48 8.3.3 Design Restrictions .................................................................................................................48 9 Low-Power Design and Support ..........................................................................................49 9.1 Software Support for Low-Power Sleepy Modes....................................................................................52 9.2 Baud Rates in Sleepy Mode.....................................................................................................................52 10 Memory Planning.................................................................................................................53 10.1 Making a RAM-Only Board..................................................................................................................53 10.1.1 Hardware Changes ................................................................................................................53 10.1.2 Software Changes..................................................................................................................54 11 Flash Memories ....................................................................................................................55 11.1 Supporting Other Flash Devices ............................................................................................................58 11.2 Writing Your Own Flash Driver ............................................................................................................59 iv rabbit.com Table of Contents