Page 1
QuickStart Instructions Using PHYTEC FlashTools98 and the TASKING Embedded Development Environment (EDE) evaluation version Note: The PHYTEC Spectrum CD includes the electronic version of the English microMODUL-8051 Hardware Manual Hinweis: Die PHYTEC Spectrum CD beinhaltet die elektronische Version des deutschen microMODUL-8051 Hardware Manuals...
Page 2
The information in this document has been carefully checked and is believed to be entirely reliable. However, PHYTEC Meßtechnik GmbH assumes no responsibi- lity for any inaccuracies. PHYTEC Meßtechnik GmbH neither gives any guarantee nor accepts any liability whatsoever for consequential damages resulting from the use of this manual or its associated product.
1.5 The TASKING 8051C05 Embedded Development Environment (EDE) ..............7 Getting Started...................11 2.1 Installing Rapid Development Kit Software.......11 2.2 Interfacing the microMODUL-8051C05 to a Host-PC ....18 2.3 Starting PHYTEC FlashTools98 for Windows ......20 2.4 Downloading Example Code with FlashTools98 .......21 2.4.1 “Hello”................27...
Page 4
Memory Window............55 4.5.2 Stack Window ............... 56 4.5.3 Simulated I/O ..............56 4.6 Resetting CrossView Pro and the microMODUL-8051C05 ..57 Advanced User Information............. 59 5.1 FlashTools98 ................59 5.2 Start.asm ..................61 5.2.1 Linking and Locating ............ 62 5.3 Debugging using Monitor Kernel..........
Hardware Manual. 1.1 Rapid Development Kit Documentation This “ Rapid Development Kit” includes the following electronic documentation on the enclosed “ PHYTEC Spectrum CD-ROM” : • the PHYTEC microMODUL-8051...
All applicable data/address lines and applicable signals extend from the underlying logic devices to standard-width (2.54 mm./0.10 in) pin headers lining the circuit board edges. This enables the microMODUL-8051C05 to be plugged like a “big chip” into target hardware. The standard memory configurations of the microMODUL-8051C05 features 32 (to 128) kByte external SRAM and 128 (to 512) kByte external Flash for storage of user code.
Page 9
• operates in a temperature range of 0... 70° C (optional -40... 85° C temperature range available) The PHYTEC Development Board, in EURO-card dimensions (160 x 100 mm), is fully equipped with all mechanical and electrical components necessary for the speedy and secure insertion and subsequent programming of most PHYTEC microMODUL and miniMODUL series Single Board Computers.
Page 10
• a CAN interface at a second DB-9 connector • a VG96-connector • simple jumper configuration allowing use of the Development Demoboard with various PHYTEC Single Board Computers • Galvanic separation of CAN-bus signals • Voltage regulator for supply of CAN operational voltage •...
The IHEX51 Object-to-Hex converter converts an absolute object file into an Intel-hexfile that is suitable for programming into an EPROM device or downloading into external Flash on the PHYTEC microMODUL-8051C05 target board. The TASKING tool chain consists of the following executables: • C Compiler cc51.exe...
Flash-Memory using FlashTools98 2.1 Installing Rapid Development Kit Software When you 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.
Page 18
QuickStart Instructions All software and tools for this microMODUL-8051C05 Kit will be installed to the \PHYBasic folder on your hard-drive. In the next dialog you must choose whether to copy the selected documentation as *.pdf-files to your hard-drive or to install a link to the documentation.
QuickStart Instructions 2.2 Interfacing the microMODUL-8051C05 to a Host-PC Connecting the microMODUL-8051C05, mounted on the PHYTEC Development Board, to your computer is simple: • As shown in the figure below, if the microMODUL is not already pre-installed, mount it pins-down onto the Development Board’s exterior receptacle footprint (X2).
Boot (S2) switch. This sequence of pressing and releasing the Reset (S1) and Boot (S2) switches renders the microMODUL-8051C05 into the Bootstrap mode. FlashTools must always be operated in this mode. See section 5.1 FlashTools98 for more details. Ensure that the terminal program flasht.exe is always invoked only after the reset procedure.
PHYTEC Spectrum CD. FlashTools98 for Windows is a utility program that allows download of user code in *.hex-file format from a host-PC to a PHYTEC Single Board Computer (SBC) via an RS-232 connection. FlashTools98 consists of a firmware resident in the external Flash and corresponding software installed in the host-PC.
Programs|PHYTEC FlashTools98 program group. • The Communication Setup tab of the FlashTools98 Worksheet window will now appear. Here you can specify connection properties to the microMODUL-8051C05. • Choose the correct serial port for your host-PC and a 9,600 baudrate. • Click the Connect button to establish connection to the target hardware.
Page 27
8051 controller derivatives used microMODUL-8051C05 offer on-chip Flash. An appropriate Programming Mode option will only appear if on-chip memory is detected by the FlashTools98 firmware. For this example, it is assumed that no on-chip Flash is available on the controller populating the microMODUL-8051C05.
Page 35
<Space> bar on your keyboard will execute the hello.hex file loaded into the Flash. Pressing the <Space> bar allows the microMODUL-8051C05 to detect the baud rate for connection to the target hardware. • Successful execution will send the character string "Hello World"...
• Resetting the Development Board (at S1) 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...
CrossView Pro Ensure that the target hardware is properly connected to the host-PC and a power supply. Use the Phytec FlashTools98 to download the monitor program. The monitor program is specific to the oscillator frequency of the microMODUL-8051C05, the memory available the baudrate you want to use.
C:\PHYBasic\um8051C5\Tasking\demos\xvw\ • Open the existing project called pmm8051.pjt . • Specify the connection properties for the microMODUL-8051C05 in EDE|CrossView Pro Options..Choose the correct serial port for your host-PC and the correct baud rate. • Reset the target board Since the monitor program also consumes some processor resources like the interrupt vector of the serial interface, plus some sfr’s,...
Programming tools for the Flash device are always included with the microMODUL-8051C05 in the form of a pre- programmed Flash with a resident microcontroller firmware and a counterpart software serving as the user interface on a host-PC. Once...
Page 64
To distinguish between download and execution modes, the firmware checks immediately for the presence of a pull-up resistor (usually 4.7kΩ) connected to pin D0 (Data 0) of the microMODUL-8051C05 after reset. This resistor is located on the Development Board and can be connected to the microMODUL-8051C05 by pressing the Boot (S2) switch.
EDE according to the settings in EDE|CPU Options. Most important in combination with the microMODUL-8051C05 is the correct Chip Select (CS) setup via the Buscon and Addrsel registers. Because the startup code is modified by macro preprocessor defines it is not necessary to copy the start.asm file (located in \lib\src directory)
8051C05. All ROM code and –data sections must also be located to any internal non-volatile memory (e.g. Flash, OTPROM) of the C165 or any external Flash-Memory of the microMODUL-8051C05. The small Memory-Model which is the only one supported in the eval version of the TASKING C166/ST10 toolchain requires a special treatment of near RAM- and ROM-data sections.
Page 67
RAM for locating data classes and Flash for locating code and constant classes. The recommended operating mode of the microMODUL-8051C05 allows the use of the Chip Select Unit of the C165 to define the physical memory layout. By modifying the system registers (Buscon and Addrsel) in EDE|CPU Options as part of your project you can adapt the memory layout to your needs.
Need help?
Do you have a question about the microMODUL-8051C05 and is the answer not in the manual?
Questions and answers