background image

                                                                                    

A product of a PHYTEC Technology Holding company

phyCORE-ADuC812

QuickStart Instructions

Using PHYTEC FlashTools98 for Windows and the Keil µVision2

Software Evaluation Development Tool Chain

Note: The PHYTEC Spectrum CD includes the electronic version of

the phyCORE-ADuC812 English Hardware Manual

Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische

Version des deutschen phyCORE-ADuC812 Hardware Manuals

Edition: July 2002

Summary of Contents for phyCORE-ADuC812

Page 1: ...for Windows and the Keil µVision2 Software Evaluation Development Tool Chain Note The PHYTEC Spectrum CD includes the electronic version of the phyCORE ADuC812 English Hardware Manual Hinweis Die PHYTEC Spectrum CD beinhaltet die elektronische Version des deutschen phyCORE ADuC812 Hardware Manuals Edition July 2002 ...

Page 2: ...YTEC Meßtechnik GmbH offers no guarantee nor accepts any liability for damages arising from the improper usage or improper installation of the hardware or software PHYTEC Meßtechnik GmbH further reserves the right to alter the layout and or design of the hardware without prior notification and accepts no liability for doing so Copyright 2002 PHYTEC Meßtechnik GmbH D 55129 Mainz Rights including th...

Page 3: ... 2 4 2 Hello 28 3 Getting More Involved 33 3 1 Starting the Keil µVision2 Tool Chain 33 3 2 Creating a New Project and Adding an Existing Source File 35 3 3 Modifying the Source Code 41 3 4 Saving the Modifications 42 3 5 Setting Tool Chain Options 42 3 6 Building the Project 45 3 7 Downloading the Output File 46 3 8 Hello2 47 3 8 1 Creating a New Project 47 3 8 2 Modifying the Example Source 48 3...

Page 4: ...ning Stopping and Resetting 70 4 9 Changing Target Settings for the Final Version 71 5 Advanced User Information 75 5 1 FlashTools98 75 5 2 STARTUP A51 77 5 3 Linking and Locating 78 Index of Figures Figure 1 Keil Tool Chain Overview 8 Figure 2 Mounting the phyCORE ADuC812 onto the phyCORE Development Board LD 5V 18 Figure 3 Important Connectors Buttons and Suitable Jumper Settings on the phyCORE ...

Page 5: ...res as jumper configuration memory mapping and pin layout Selecting the links on the electronic version of this document links to the applicable section of the phCORE ADuC8xx Hardware Manual 1 1 Rapid Development Kit Documentation This Rapid Development Kit RDK includes the following electronic documentation on the enclosed PHYTEC Spectrum CD ROM the PHYTEC phyCORE ADuC8xx Hardware Manual and phyC...

Page 6: ...y to demonstrate the download of user code to the Flash device using PHYTEC FlashTools98 for Windows 2 The Getting More Involved section provides step by step instructions on how to modify both examples create and build new projects and generate and download output files to the phyCORE ADuC812 using the Keil tool chain and FlashTools98 3 The Debugging section provides a fourth example program Debu...

Page 7: ...oard LD 5V with the included DB 9 serial cable and AC adapter supplying 5 VDC min 500 mA the PHYTEC Spectrum CD an IBM compatible host PC 486 or higher running at least Windows95 98 For more information and example updates please refer to the following sources http www phytec com or http www phytec de support phytec com or support phytec de http www keil com support keil com ...

Page 8: ...gic devices to standard width 2 54 mm 0 10 in pin headers lining the circuit board edges This enables the phyCORE ADuC812 to be plugged like a big chip into target hardware The standard memory configuration of the phyCORE ADuC812 features 128 kByte external SRAM and 128 kByte external Flash for code storage 64 kByte for FlashTools firmware and 64 kByte for storage of user code The Flash device all...

Page 9: ...analog inputs and outputs can be accessed over their specific pin header connector 128 kByte to 1 MByte SRAM on board SMD 1 128 kByte to 512 kByte external Flash on board SMD 1 on board Flash programming with FlashTools flexible address decoding configurable with software via complex logic devices Bank latches for the Flash are integrated into the address decoder linear access to 16 MByte data via...

Page 10: ...pment Board LD 5V phyCORE Development Board LD 5V Technical Highlights Reset signal controlled by push button or RS 232 control line CTS0 Boot signal controlled by push button or RS 232 control line DSR0 low voltage socket for supply with regulated input voltage 5 VDC additional supply voltage 3 3 V two DB 9 sockets P1A P1B configurable as RS 232 interfaces two additional DB 9 plugs P2A P2B config...

Page 11: ...on location for the DOS based files is the C Keil C51 Bin directory while µVision2 is in C Keil Uv2 Access to these programs from Windows is accom plished within µVision2 The entire tool set can be run from µVision2 or directly from DOS with batch files The evaluation version of the Keil tool chain is restricted to a manipulable code size of 2 kByte In addition the code will automatically be locat...

Page 12: ...ision2 runs under Windows 95 98 ME NT and 2000 This Integrated Development Environment IDE has been expressly designed with the user in mind and includes a fully functional editor All IDE commands and functions are accessible via intuitive pull down menus with prompted selections An extensive Help utility is included External executables can be run from within µVision2 including emulator software ...

Page 13: ...es created with the C51 compiler or the A51 assembler are provided by Keil This process results in absolute object modules The BL51 is DOS based and can be run within a DOS box under Windows or directly from µVision2 A map file m51 can be produced giving details of the memory structure The object file may be specified to contain debugging information as required by simulators debuggers and emulato...

Page 14: ... with the Keil monitor resident in target hardware µVision2 enables the following debugging functions run halt set breakpoints examine change memory view the stack view set peripheral information apply virtual external signals µVision2 has a performance analysis feature to ensure your code runs efficiently In addition µVision2 has a disassembler assembler that allows the modification of user code ...

Page 15: ...a host PC downloading example user code in Intel hexfile format from a host PC to the external Flash memory using FlashTools98 2 1 Installing Rapid Development Kit Software Insert the PHYTEC Spectrum CD into the CD ROM drive of your host PC The PHYTEC Spectrum CD should automatically launch a setup program that installs the software required for the Rapid Development Kit as specified by the user O...

Page 16: ... of Rapid Development Kit software and documentation The default destination location is C PHYBasic All path and file statements within this QuickStart Instruction are based on the assumption that you accept the default install paths and drives If you decide to individually choose different paths and or drives you must consider this for all further file and path statements We recommend that you ac...

Page 17: ... list of available products By using the Change button advanced users can select in detail which options should be installed for a specific product All Kit specific content will be installed to a Kit specific subfolder of the Rapid Development Kit root folder that you have specified at the beginning of the installation process ...

Page 18: ...ROM each time you want to access these documents The installed links will refer to your CD ROM drive in this case If you decide to copy the electronic documentation to your hard drive the documentation for this phyCORE ADuC812 RDK will also be installed to the kit specific subfolder The manuals of the phyCORE Development Board LD 5V are copied to their own specific subfolder e g PHYBasic DevBLD5V ...

Page 19: ...problems We recommend that you install µVision2 from the Spectrum CD ROM even if other versions of µVision2 are already installed on your system These QuickStart Instructions and the demo software included on the CD ROM have been specifically tailored for use with one another After accepting the Welcome window and license agreement select the destination location for installation of the Keil evalu...

Page 20: ...itional software such as Adobe Acrobat Reader will also be offered for installation In the following windows you can decide to install FlashTools98 software and the Acrobat Reader The applicable FlashTools software must be installed to ensure successful completion of this QuickStart Instruction Failure to install the proper software could lead to possible version conflicts resulting in functional ...

Page 21: ...ing Started PHYTEC Meßtechnik GmbH 2002 L 462e_2 17 Decide if you want to begin the QuickStart Instruction immediately by selecting the appropriate checkbox and click on Finish to complete the installation ...

Page 22: ...exterior receptacle footprint X6 Ensure that pin 1 of module denoted by the hash stencil mark on the PCB matches pin 1 of the receptacle on the phyCORE Development Board LD 5V Ensure that there is a solid connection between the module pins and the phyCORE Development Board LD 5V receptacle Caution Take precautions not to bend the pins when the phyCORE module is removed from and inserted onto the p...

Page 23: ...Development Board LD 5V Connect the RS 232 interface of your computer to the DB 9 RS 232 interface on the phyCORE Development Board LD 5V P1A bottom using the included serial cable Using the included power adapter connect the power socket on the board X1 to a power supply refer to Figure 4 for the correct polarity 5 VDC GND 500 mA Center Hole 1 3 mm 3 5 mm Polarity Figure 4 Power Connector Simulta...

Page 24: ... FlashTools98 for Windows FlashTools98 should have been installed during the initial setup procedure as described in section 2 1 If not you can manually install it using the setup exe file located in the folder Software Flasht98 FlashTools98 for Windows is a utility program that allows download of user code in Intel hex file format from a host PC to a PHYTEC SBC via an RS 232 connection FlashTools...

Page 25: ...rograms Phytec program group The Communication Setup tab of the FlashTools98 tabsheet window will now appear Here you can specify connection properties to the phyCORE ADuC812 Choose the correct serial port for your host PC and a 9 600 baud rate Note Always ensure that the phyCORE ADuC812 is in Flash programming mode before pressing the Connect button Click the Connect button to establish connectio...

Page 26: ...ud rates to establish a connection Before attempting each connection be sure to reset the target hardware and render it into Flash programming mode FPM as described in section 2 2 Returning to the FlashTool98 tabsheet window you will see tabs for the following Bank Utilities2 enable erasure and status check of whole banks of memory specified by the user 2 The number of banks shown on the Bank Util...

Page 27: ...ess ranges in Flash memory Communication Setup allows selection of the serial port and speed before the communication is initialized or to disconnect the ongoing communication 3 The appearance of the Flash Information tabsheet varies depending on the size and type of the Flash mounted on the phyCORE ADuC812 ...

Page 28: ...phyCORE ADuC812 24 PHYTEC Meßtechnik GmbH 2002 L 462e_2 File Download downloads specified hexfiles to the target hardware Protected Areas Information shows protected areas of Flash memory ...

Page 29: ...2e_2 25 Sector Utilities4 enable erasure and status check of individual sectors of Flash memory specified by the user 4 The appearance of the Sector Utilities tabsheet varies depending on the size and type of the Flash mounted on the phyCORE ADuC812 ...

Page 30: ...ank Wait until the status check in the lower left corner of the FlashTools98 tabsheet finishes returning the connection properties description to the lower left corner of the window Next choose the File Download tab and click on the File Open button The hexfile has already been installed to your hard drive during the installation procedure Browse to the correct drive and path for the phyCORE ADuC8...

Page 31: ...e download a sector by sector status check of the Flash memory can be viewed in the lower left corner of the FlashTools98 tabsheet window Wait until the status check finishes before returning to work with the board Once the status check is complete the downloaded code can be executed Returning to the Communication tab click on the Disconnect button and exit FlashTools98 Press the Reset button S2 o...

Page 32: ...ttons on the phyCORE Development Board LD 5V and then releasing first the Reset and two or three seconds later the Boot button Start FlashTools98 At the Communication Setup tab of the FlashTools98 tabsheet specify the proper serial port and transmission speed 9 600 baud for communication between host PC and target hardware and click the Connect button to establish connection to the target hardware...

Page 33: ...d a warning dialog box will appear indicating Location not empty Please erase location and try again In this event select the Bank Utilities tab from the FlashTools98 tabsheet highlight Bank 1 and erase the bank Then repeat the download procedure At the end of the download a sector by sector status check of the Flash memory can be viewed in the lower left corner of the FlashTools98 tabsheet window...

Page 34: ...essories bar The HyperTerminal main window will now appear5 Double click on the HyperTerminal icon Hypertrm to create a new HyperTerminal session The Connection Description window will now appear Enter COM Direct in the Name text field Next click on OK This creates a new HyperTerminal session named COM Direct and advances you to the next HyperTerminal window 5 The HyperTerminal Window has a differ...

Page 35: ...OM2 under the Connect Using pull down menu be sure to indicate the correct COM setting for your system Click the Configure button in the COM Direct Properties window to advance to the next window COM1 COM2 Properties Then set the following COM parameters Bits per second 9 600 Data bits 8 Parity None Stop Bits 1 Flow Control None ...

Page 36: ...execute the Hello hex file loaded into the Flash Successful execution will send the character string Hello World from the target hardware to the HyperTerminal window Click the disconnect icon in HyperTerminal toolbar and exit HyperTerminal If no output appears in the HyperTerminal window check the power supply the COM parameters and the RS 232 connection You have now successfully downloaded and ex...

Page 37: ...arting the Keil µVision2 Tool Chain The Keil µVision2 evaluation software development tool chain should have been installed during the install procedure as described in section 2 1 You can also manually install µVision2 by executing install bat from within the Software Keil Ek8051 directory of your PHYTEC Spectrum CD Note It is necessary to use the Keil tool chain provided on the accompanying Spec...

Page 38: ... chain by selecting Keil µVision2 from within the Programs group After you start µVision2 the window shown below appears From this window you can create projects edit files configure tools assemble link and start the debugger Other 3rd party tools such as emulators can also be started from here ...

Page 39: ...e Project menu and Close the project To create a new project file select from the µVision2 menu Project New Project This opens a standard Windows dialog box that asks you for the new project file name Change to the project directory created by the installation procedure default location C PHYBasic pC ADuC812 Demos Keil Blinky2 In the text field File name enter the file name of the project you are ...

Page 40: ...get and double click on Analog Device in the CPU vendor data base list The phyCORE ADuC812 is equipped with an Analog Devices ADuC812 Choose this controller type from the list as shown below This selection sets necessary tool options for the ADuC812 device as well as pre configures additional settings for the device Click on OK ...

Page 41: ...ange the default name of the target to phyCORE ADuC812 Select the file group Source Group 1 in the Project Window Files tab and click on it to change the name into User Right click in the Project Window Files to open a new window Choose the option Targets Groups Files Select the tab Groups Add Files and type the new group name System Files in the Group to Add section Click on Add and then on OK ...

Page 42: ...EC Meßtechnik GmbH 2002 L 462e_2 Your project file structure should now look like this In order to add Blinky2 c to our project right click on the User group to open a menu Select the option Add Files to Group User to open the standard files dialog ...

Page 43: ... button to add the Blinky2 c file to your current project window Close the window Now right click on group System Files and add the file Startup a51 You have to change the file type to Asm Source file a src in the File of types pull down menu to see this file Your project window should now look like this ...

Page 44: ...point you have created a project called Blinky2 uv2 and added an existing C source file called Blinky2 c and an existing assembler file called Startup a51 The next step is to modify the C source before building your project This includes compiling linking locating and creating the hexfile ...

Page 45: ...code section Modify the section shown below the values shown in bold and italic from the original 10 000 counts to the indicated values while 1 loop forever P34 1 Port 3 4 High LED3 OFF for i 0 i 10000 i delay for 10000 counts wait call wait function P34 0 Port 3 4 Low LED3 ON for i 0 i 5000 i delay for 5000 counts wait call wait function This will change the LED on off ratio ...

Page 46: ...ramming languages Before using the Make utility macroassembler C compiler or linker you must configure the corresponding options Most of the options are set by specifying the target device for the project Only the external memory and output options must be set Enter the changes as indicated below and leave all other options set to their default values µVision2 allows you to set various options wit...

Page 47: ...his allows selection of the Large variables in XDATA memory model The evaluation version of the Keil tool chain automatically relocates CODE to start address 0x40006 The XDATA memory can be configured in the range starting at 0x0000 with a maximum size of 0xFC00 The memory range between 0xFC00 and 0xFFFF is reserved for the address decoder registers and the I O Chip Select signals on the phyCORE A...

Page 48: ...t Instructions 44 PHYTEC Meßtechnik GmbH 2002 L 462e_2 To configure the Output options Select the Output tab and activate the Create HEX File checkbox With this option an Intel hex file will be created for download Click on OK ...

Page 49: ...and linked and the ex ecutable code is ready to be downloaded to the module This is shown in the Output Window which indicates Blinky2 0 Errors 0 Warnings The created hexfile will have the name of the project with hex as the filename extension in this case Blinky2 hex Note A machine readable executable hexfile has been created Other files e g list files lst and map files map are generated to help ...

Page 50: ...se section and click on the Erase Bank s button to erase this memory bank Wait until the status check in the lower left corner of the FlashTools98 tabsheet finishes returning the connection properties description to the lower left corner of the window Next choose the File Download tab and click on the File Open button Browse to the correct drive and path for the phyCORE ADuC812 Demo folder default...

Page 51: ...Start the Keil µVision2 environment and close all projects that might be open Open the Project menu and create a new project called Hello2 uv2 within the existing project folder C PHYBasic pC ADuC812 Demos Keil Hello2 default location on your hard drive Select the Analog Devices ADuC812 in the CPU vendor data base list Add Hello2 c and Startup a51 from within the project folder to the project Hell...

Page 52: ... frequency of your phyCORE module the memory model make sure Large variables in XDATA is configured and the off chip memory Modify the default options for the output file by selecting the Create HEX File checkbox in the Project Options for Target Output tab This will automatically create a hexfile for download to the phyCORE ADuC812 after compiling 3 8 4 Building the New Project Build the project ...

Page 53: ...h connection to the target hardware Returning to the FlashTools98 tabsheet choose the Bank Utilities tab highlight Bank 1 within the Bank Erase section and click on the Erase Bank s button to erase this memory bank Wait until the status check in the lower left corner of the FlashTools98 tabsheet finishes returning the connection properties description to the lower left corner of the window Next ch...

Page 54: ... 8 Parity None Stop Bits 1 Flow Control None Resetting the phyCORE Development Board LD 5V at S2 will execute the Hello2 hex file loaded into the Flash Successful execution will send the modified character string PHYTEC Stick It In to the HyperTerminal window Click the Disconnect icon Close the Hyper Terminal program You have now modified source code recompiled the code created a downloadable hexf...

Page 55: ...l I O and timers The peripheral set is selected when you select a CPU from the device database for your target Advance GDI drivers like the Keil Monitor 51 interface allow target based debugging With the Advanced GDI interface you may connect directly to the target hardware Debugging on the target hardware also enables testing peripheral components of the application The following examples utilize...

Page 56: ...rdware Returning to the FlashTools98 tabsheet choose the Bank Utilities tab highlight Banks 1 and click on the Erase Bank s button Next choose the File Download tab and click on the File Open button Download the file mon51 hex from the Tools folder C PHYBasic pC ADuC812 Tools Keil Mon 64k default location The PHYTEC Spectrum CD ROM may also contain other versions of the mon51 hex monitor file Thes...

Page 57: ...open Open the Project menu and create a new project called Debug uv2 within the existing project directory C PHYBasic pC ADuC812 Demos Keil Debug default location on your hard drive Select the Analog Devices ADuC812 in the CPU vendor data base list Rename the target of your project within the Project Window Files tab into phyCORE ADuC812 Rename the file group Source Group 1 within the Project Wind...

Page 58: ...or Flash For access to XDATA space a RAM is used Using this memory model with an 8051 derivative allows access to up to 64 kByte of memory for CODE and 64 kByte for XDATA When debugging with the Keil monitor it is important that the user program CODE can be changed during runtime e g to enable setting of breakpoints This requires the user program to be stored in RAM and not in Flash In order to en...

Page 59: ...n program do not overlap This is important because otherwise portions of the program CODE will be overwritten by e g variables XDATA resulting in an error when executing user code I O Area for details see Hardware Manual RAM for application CODE and XDATA portions von Neumann XDATA portion of target Monitor firmware mon51 hex CODE access XDATA access E000H 0000H FFFFH RAM U5 DFFFH Write Only Read ...

Page 60: ...strictions for the off chip CODE memory start address in the evaluation version of the Keil tool chain must be considered The start address of the XDATA memory should be at 0x100 in order to avoid conflicts with the interrupt reset vector table which is located between 0x0 and 0xFF 7 Ensure that the CODE and XDATA memory do not overlap Note When using the evaluation version of the Keil tool chain ...

Page 61: ...ONITOR51 reserves space for the serial interrupt and disables the configuration of the serial interface by the Debug c program This is necessary to avoid overwriting the configuration done by the monitor kernel The define INTERRUPT disables all serial output of the Debug c program If debugging is controlled with the serial interrupt see settings for the Keil Monitor 51 Driver in section 4 3 any se...

Page 62: ...ation to the settings shown in the figure below Ensure that the configurations on the Listing A51 BL51 Locate and BL51 Misc tabsheets are set to their default settings Click the OK button to save the settings Click on the Rebuild all target files button to compile and link your project 8 Please note that this example only requires the define MONITOR51 in order to use the serial output ...

Page 63: ... µVision2 will load the application program and run the startup code Open the Project Options for Target phyCORE ADuC812 menu and select the Debug tabsheet Enable the checkboxes Use Keil Monitor 51 Driver and Load Application at Startup Disable the checkbox Go till main Click on the Settings button in the upper right hand corner of the Debug tabsheet ...

Page 64: ...EC Meßtechnik GmbH 2002 L 462e_2 Select the correct COM port and baud rate in the COM Port Settings as shown below Ensure that Serial Interrupt checkbox is disabled Click on the OK button to exit the Target Setup window Click on the OK button again ...

Page 65: ... debugger icon on the µVision2 toolbar A pop up window will appear indicating that this is an evaluation version Click on OK You will see a blue status bar from left to right at the bottom of your screen indicating the download process of the debug program If a problem occurs during data transfer the following window will appear Click on Settings and verify the COM port and the baud rate 9 600 bau...

Page 66: ...d below the Project window It shows all serial output of the debug program In the lower part of the debug screen you will see the Command Memory and Watch Stack window You may need to open resize and or move some windows to make your screen look similar to the screen capture You can open inactive windows by choosing the desired window from the View pull down menu The following screen capture has W...

Page 67: ...s not yet initialized and the value is therefore random In the Command window prompt in the lower left corner type in g main notice the comma and press Enter to start the program The debugger will run to the main function and stop automatically Notice the yellow arrow pointing to the first command in the main function Also notice the program counter PC within the Project Window Register page showi...

Page 68: ...ommand sets the program counter to 0 However it should be noted that peripherals and SFRs of 8051 devices are not set into reset state Therefore this command is not identical to a hardware reset of the CPU The button to the right of the Reset button starts the Run command Clicking this button runs the program without active debug functions To stop program execution at a desired point a breakpoint ...

Page 69: ...the function will be executed without single stepping into the function Note We recommend not using the Step Over function with the monitor During compiling of the C code the compiler runs through the optimization steps This optimization summarizes calls of nested functions and their return jump to the original function in the compiled machine code This can effect a Step Over command by nesting mu...

Page 70: ... Run to Cursor line command executes the program to the current cursor position within the code window This allows use of the cursor line as a temporary breakpoint 4 6 Using the Keil µVision2 Debug Features 4 6 1 Serial Window Click on the Step Into button The printf command will be executed and the serial output will appear in the Serial 1 window of the debugger ...

Page 71: ...The red marker on the left hand side of the selected line indicates the breakpoint Click on the Run icon and the program will run and stop at the breakpoint Notice that the LED D3 on the Development Board now illuminates This is because the led 0 function call has been executed and the status of the LED is shown in the Serial window Click again on Insert Remove Breakpoint to remove the breakpoint ...

Page 72: ...ep Into several times and watch the value of i count up As you can see in the source code the for loop will end if i becomes equal to delay To leave the wait function change the value of i by typing i 59996 in the command line and pressing Enter Now repeat clicking on Step Into until you leave the wait function Click in the source code line blink and choose Run to Cursor line from the debug toolba...

Page 73: ...is shown with its address and a small sign in front which indicates that rhythm is an array with a group of array elements Click the sign to expand the view and to see all array elements of rhythm Using the memory address of rhythm which is shown in the watch window it is also possible to view the values of the array elements in the Memory window Type X 0x0129 in the Address line of the Memory win...

Page 74: ...tton Click the Run button The LED now blinks and its current status is displayed in the Serial window Use of the Stop button is not possible as this example utilizes functions for the RS 232 communication within the application code To stop program execution leave the debugger and press the Reset button on the phyCORE Development Board LD 5V If you want to use the Stop button the serial output of ...

Page 75: ... Intel hexfile This can then be downloaded to the Flash memory of the phyCORE ADuC812 Open the Project Options for Target phyCORE ADuC812 menu and change the settings for off chip memory to the new values as shown in the figure below Since this program code is intended for execution out of Flash rather than running in the Keil mon51 hex monitor the complete range of available memory can be used ...

Page 76: ...phyCORE ADuC812 QuickStart Instructions 72 PHYTEC Meßtechnik GmbH 2002 L 462e_2 Select the Output tabsheet and enable the checkbox Create HEX File ...

Page 77: ...project Download the created Debug hex file located in C PHYBasic pC ADuC812 Demos Keil Debug to the Flash memory For general download procedure information refer to sections 2 2 through 2 4 Start HyperTerminal and connect to the target hardware using the following COM parameters Bits per second 9 600 Data bits 8 Parity None Stop Bits 1 Flow Control None Press the Reset button S2 on the Developmen...

Page 78: ...phyCORE ADuC812 QuickStart Instructions 74 PHYTEC Meßtechnik GmbH 2002 L 462e_2 ...

Page 79: ...C812 allows you to easily update your own code and the target application in which the phyCORE ADuC812 has been implemented Currently the phyCORE ADuC812 can be populated by two different sized Flash devices a 29F010 with 128 kByte or a 29F040 with 512 kByte To support the entire memory area of these devices the address decoder of the phyCORE ADuC812 is equipped with an integrated banking mechanis...

Page 80: ...OT signal after reset BOOT 0 start Flashtools BOOT 1 start user program This signal can be set to a low level by pressing the Boot S1 button located on the phyCORE Development Board LD 5V To enter the Flash programming mode you must simultaneously press the Reset S2 and the Boot S1 button release the Reset S2 button first and then two to three seconds later release the Boot S1 button Execution of ...

Page 81: ...ector After performing the initialization steps your individual main function is called by the startup code To configure the start up code to fit the needs of your application copy it from the Lib folder of the Keil tool chain to your project folder You can then edit modify and compile it using the Keil macroassembler You must explicitly instruct the linker to take into account your start up objec...

Page 82: ...accessible memory and has two physically different signals for separate fetching of data and code The Keil tool chain distinguishes the following segment types CODE code XDATA external data max 64 kByte DATA direct addressable on chip data max 128 Byte IDATA indirect addressable on chip data max 256 Byte BIT bit addressable on chip data max 128 bits The segment types DATA IDATA and BIT always resi...

Page 83: ...FFF This default runtime memory model requires no additional linker settings because both RAM and Flash start at 0x0000 This is also the default start address of the linkers segment types Since you can not define any end address you should always ensure that the size of the segments fits within the available size of the mounted memory devices For instance all XDATA segments should end below 0x7FFF...

Page 84: ...phyCORE ADuC812 QuickStart Instructions 80 PHYTEC Meßtechnik GmbH 2002 L 462e_2 ...

Page 85: ...12 QuickStart Instructions Document number L 462e_2 July 2002 How would you improve this manual Did you find any mistakes in this manual page Submitted by Customer number Name Company Address Return to PHYTEC Technologie Holding AG Postfach 100403 D 55135 Mainz Germany Fax 49 6131 9221 33 ...

Page 86: ...Published by PHYTEC Meßtechnik GmbH 2002 Ordering No L 462e_2 Printed in Germany ...

Reviews: