Skip to content
ISO 9001:2015 Certified Manufacturer & Exporter · Since 1985
Frontline Electronics

Discontinued product

Topview Simulator for 8031 Microcontrollers

Facility to simulate the complete 8051 microcontroller. Facility to simulate the architecture, on chip peripherals and many external embedded modules. Built…

Discontinued No longer in production. This page is kept for existing users.

Topview Simulator for 8031 Microcontrollers

Facility to simulate the complete 8051 microcontroller.
Facility to simulate the architecture, on chip peripherals and many external embedded modules.
Built in Integrated support to use the SDCC C compiler for program development.
Built in Code Editor to support C program development and the assembly code.
Built in Code Debugging facilities to support both C language and the assembly code with Break Point, Single Step and Software Breakpoints.
Built in facility to generate the application code for the embedded modules either in C or in assembly language.
Facility to start and finish the total project in the simulation environment.
Built in Simulation facilities:
Range of Point LEDs and Seven Segment LEDs.
LCD modules of many configurations.
Momentary ON keys.
A variety of keypads up to 4x8 key matrix.
Toggle switches.
All modes of on chip serial port.
IIC components including RTC, EEPROMs.
SPI Bus based EEPROM devices.
Suitable for Atmel AT89CXX Microcontrollers.

Completed Project in simulator

Completed Project in simulator 2

Introduction

Introduction

Topview Simulator gives an excellent simulation environment for the industry’s most popular 8 bit Microcontroller family, MCS 51. It gives required facilities to enable the system designers to start projects right from the scratch and finish them with ease and confidence.

It is the total simulation solution giving many state of art features meeting the needs of the designers possessing different levels of expertise. If you are a beginner, then you can learn about 8051 based embedded solutions without any hardware. If you are an experienced designer, you may find most of the required facilities built in the simulator that enabling you to complete your next project without waiting for the target hardware.

The features of the simulator is briefly tabulated here for your reference:

Finished Real Time Projects

Project - 8 Channel Sequential Controller with LED Displays

Project - 8 Channel Sequential Controller - LCD Display

Project - Programmable Timer with 2X16 LCD Display

Device Selection

A wide range of device selection, including Generic 8031 devices and Atmel’s AT89CXX series 8051 microcontrollers.

Program Editing

Powerful editing feature for generating your programs both in C and Assembly level and the facility to call an external Compiler / Assembler (Keil / SDCC Compilers) to process input programs.

Clearview

Clearview facility gives all the internal architectural details in multiple windows. Information about the Program, Data Memory, register, peripherals, SFR bits are clearly presented in many windows to make you understand the program flow very easily.

Program Execution

A variety of program execution options including Single Stroke full speed execution, Single Step, Step Over and Breakpoint execution modes give you total control over the target program.

Clearview updates all the windows with the correct and latest data and it is a convenient help during your debugging operations.

You may find how this Topview Simulator simplifies the most difficult operation of the program development, debugging, into a very simple task.

Simulation Facilities

Powerful simulation facilities are incorporated for I/O lines, Interrupt lines, Clocks meant for Timers / Counters.

Many external interfacing possibilities can be simulated:

  • Range of Plain Point LEDs and Seven Segment LED options.
  • LCD modules in many configurations.
  • Momentary ON keys.
  • A variety of keypads up to 4 X 8 key matrix.
  • Toggle switches.
  • All modes of onchip serial port communication facility.
  • I2C components including RTC, EEPROMs.
  • SPI Bus based EEPROM devices.

Code Generation Facilities

Powerful and versatile Code Generating facility enables you to generate the exact and compact assembly code / C Source code for many possible application oriented interfacing options.

You can simply define your exact needs and get the target assembly code / C Source code at a press of button at anywhere in your program flow. The code gets embedded into your application program automatically.

You are assured of trouble free working of final code in the real time.

  • All modes of the serial port.
  • Interfacing I2C/SPI Bus devices.
  • Range of keypads.
  • Many LED/LCD interfacing possibilities.

Device selection

Device Selection

  • Simulation of Generic 8031 Microcontrollers: 8031, 8051, 8032, 8052.
  • All 8031 microcontroller devices of Atmel’s AT89CXX Family: 89C1051, 89C2051, 89C4051, 89C51, 89C52, 89C55, 89S53, 89S8252.

When you select a particular controller, the Topview Simulator will be automatically configured to the features of the device. You need not worry about memory, available ports, internal peripherals and etc because the simulator handles the enabling and disabling the features itself.

  • Facility to simulate 8031 in single chip and expanded configuration.
  • Provision to set address range of both external Program and Data Memory, Crystal frequency.

  • Facility is provided to overlap a block or whole of Program and Data Memory spaces in expanded configuration.

Program editing

Program Editing

The simulator sports a powerful built-in editor to support program entry operations. It can call an external compiler or assembler software and pass the edited program to it for compiling or assembling.

The compiler / assembler output can be captured and viewed along with your input program in editor. Also viewing the list file (coming out of assembler) by the side of input assembly / C file enables you to view the details of error and the location. You can easily correct input file errors before compiling / assembling it again. Useful feature when troubleshooting the program.

There is an optional facility to load the assembled program into the specified Program memory.

Benefit: Saves time during debugging phase

Compiler Settings for SDCC and Keil Compilers.

Program execution

Program Execution

During execution, all the windows of clearview can be updated according to the time interval set by yourself.

Benefit: You can know the status of your program at any point of time

Breakpoint execution can be based on the registers, internal Data Memory, Flags, external Data Memory and memory bit status.

The breakpoint conditions are displayed in the status bar for your reference. Usually the breakpoints are based on the PC contents. But in the Topview Simulator, facility is there to use other information as the breakpoint conditions.

After every execution (break point or full speed) the address at which the execution stops/breaks will be highlighted and all the windows are refreshed with the new information. The changes are indicated in a different color to draw your attention.

Benefit: If you stop program execution when the microcontroller hangs up, you can find out where exactly your program flow stays still. Useful handy feature for your program development.

Different options are available in single step execution:

  • Selection of either step or step over mode. Step mode executes program instructions one by one. In step over mode, subroutines can be executed in a single step.
  • A command in the singlestep operation helps to set the step size which is used by both step and stepover executions. The step mode executes the program line by line (or by the step defined by you). In the stepover mode, the subroutine is executed in a single step. In the Finish subroutine mode the control executes the program until the RET instruction is encountered and executes it and waits in the next instruction for further commands.

Useful timing analysis is available to calculate program execution time and machine cycles of the target program are accumulated and displayed for your reference.

Benefit: Accurate timing information about the program execution can be obtained for critical operations. For an example, you can accurately define delay routines.

Simulation facilities

Simulation Facilities

I/O lines : During program execution, inputs can be set and you can watch output lines for desired results.

  • Interrupt lines (both level and edge triggering) are also supported.
  • Clock pulses can be simulated for Timers/Counters 0,1 and 2.
  • For the AT89CX051 devices, Onchip Analog Comparator can also be simulated. Facility is there to give variable inputs to the comparator.
  • For AT89S53, AT89S8252 devices, Watch dog timer is also be simulated.
  • All modes of Serial port are simulated.

Topview Simulator simulates all possible four modes of the serial port including Multiprocessing Communication. There is a facility that enables you to send a test data byte out of the serial port and you can view that data going out of the serial port. Similarly you can view the data bytes received at the serial port.

  • Separate buffers of size 256 bytes are provided for capturing both transmitted and received data bytes.
  • These buffers can be saved separately for verification.
  • During execution, data transmitted out of TXD line is captured and displayed continuously for your verification.
  • Similar facility is available to monitor and accumulate data from RXD line.
  • There is another serial port made available to simulate external host serial port. Using this facility you can make sure serial port of your target hardware works fine with a host computer. This can substitute personal computer’s serial port and enables you to test and verify the serial port of the target design.
  • The serial port sports the facility to send / receive data with the target hardware. you can either manually key in test data or you can send a data file through this simulated host serial port.
  • Internal SPI module of AT89S8252 device can be simulated. An exclusive dialog box gives the facility for this.

External peripheral modules

External peripheral modules can also be simulated. These modules can be connected to any available I/O lines. This should assist the user to develop and complete the project without any real target hardware.

LED Modules

Plain Point LEDs

  • Color of LEDs. Red / Green can be defined.
  • A maximum of 32 point LEDs can be graphically simulated.
  • Activation level (either 1 or 0) can be defined.

Seven Segment Displays

  • 16 Digits of Seven Segment displays are graphically represented.
  • Choice of display colors (Red/Green).
  • Select Common Anode/Cathode displays.
  • Seven Segment displays can be connected in any one of the following configurations:
  • Non-Multiplexed displays with BCD inputs.
  • Non-Multiplexed displays with Seven Segment Code inputs.
  • Multiplexed displays with BCD inputs.
  • Multiplexed displays with Seven Segment Code inputs.
  • Multiplexed displays with BCD inputs using external multiplexer.
  • Multiplexed displays with Seven Segment Code inputs using external multiplexer (up to 4 to 16 digits)

Maximum number of digits is defined by the configuration of the display module and the available port lines. There is no restriction on the port lines. Displays can be connected to available port lines of the microcontroller.

LCD Module

The simulator gives actual and exact graphical view of the LCD modules similar to real life displays.

  • Supported LCD modules: 1X16, 2X16, 4X16 and 4X20.
  • Either 4 bit or 8 bit interface option can be selected.
  • Facility to select the Back light of the LCD module.

Keyboard Module

  • A maximum of 32 Momentary ON type keys can be simulated.
  • Active level can be selected (0 - 1 - 0 or 1 - 0 - 1)
  • Key matrices of type 4X3, 4X4 and 4X8 can be simulated.
  • Also toggle switches can be simulated. Maximum is 32. Key matrix, toggle switches can be connected to any port lines as per your wish list.

I2C Module

Complete external interface for two popular I2C devices can be selected: I2C RTC, I2C EEPROM.

Devices that can be simulated :
I2C RTC : Philips RTC - PCF 8583.
I2C EEPROM : AT24C01, AT24C02, AT24C04, AT24C08 and AT24C16.

  • The address lines, A0, A1 and A2 can be selected according to the device.
  • The device can be connected with any available I/O lines.
  • For EEPROM devices, write protect option can be enabled.

When the write protection is enabled, the contents of the device will be displayed in different colour to indicate that the device is operating in Write Protect mode.

Special feature of I2C RTC simulation : You can use your computer’s RTC timings as reference during RTC simulation.

Benefit: Handy feature when designing time dependent projects.

SPI Modules

All possible types of external SPI modules can be simulated and can be interfaced with any available I/O lines of the microcontroller.

  • Either 3 or 4 wire configuration can be chosen.
  • Any one of the EEPROM devices can be selected:
  • AT 25010, AT 25020 and AT 25040 of Atmel.
  • Write protection options can be enabled.

Both I2C and SPI EEPROM devices are simulated taking into account time required for data write cycle. This cycle may take up to about 10 milliseconds. You can’t write any command or data into or read from the device until the write cycle comes to an end except when reading device status.

Code generation

Code Generation Facilities

Using this, you can generate required assembly / C code for all possible on-chip peripheral functions and also many external peripheral functions. You can include these routines into your program.

You can do this in few simple steps. You keep open your editor and point the desired location using the cursor and then configure the peripheral function in the respective dialog box.

That’s all. Now you press the code generate button to get the required assembly / C code at the defined place. Suitable comments are also made available for easy understanding. Then keep going with your target program flow.

Benefit: You are assured of fully tested and compact assembly / C codes which can be directly used in your target applications.

Internal Peripheral Functions

Serial Port

  • Any one of the modes 0/1/2/3 can be selected.
  • Depends upon the mode, crystal, the possible baud rates will be displayed for your convenience.
  • Timer 1 or 2 can be selected for baud rate generator.
  • Initialization, transmission and reception routines will be generated according to the given selection.

External Peripheral Modules

You can generate code snippets suitable for interfacing variety of external LED and LCD modules. You can activate a dialog box and define your exact needs by clicking relevant settings. You can use any available I/O lines for interfacing these modules. There is no restriction like using port lines (of same port) in order to get a LED/LCD function. Any I/O line from any port can be used to configure the required display function.

LED Display Functions

  • 1 / 2 / 4 Digits
  • Multiplexed / Non Multiplexed.
  • Common Anode / Cathode.
  • Data Input options : BCD / 7 segment.
  • Use of external multiplexer.

You can also notice the allotment of I/O lines to get the required LED function in the same dialog box.

LCD Module Selection

Just like LED options, you can make use of many possible modules suitable for LCD interfacing.

  • LCD Type : 1 line X 16 Characters, 2 X 16 , 4 X 16 and 4 X 20.
  • Interfacing options : 8 bits / 4 bits.
  • Facility to keep same settings as you tried in simulator.
  • All possible routines meant for LCD interfacing.

The dialog box gives all possible options. Just click your requirements and get the relevant assembly code.

Keyboard Interfacing

Using this facility, you can generate the required code for following key matrices:

  • 4 X 3

  • 4 X 4

  • 4 X 8

  • You also can define internal data memory location where you want to get the keyboard code.

  • You can use same simulator settings.

  • Use any port line to implement this key matrix.

I2C / SPI Buses

The Topview Simulator gives tight and right assembly code to implement all possible peripheral functions as shown in the following diagrams.

Clearview

Clearview

Extensive GUI features are available thanks to clearview presentation. Separate windows are available to display,

  • Program Memory.
  • Internal Data Memory.
  • External Data Memory.
  • Registers.
  • Memory Bits and
  • Special Function Registers.

This multi window clearview capability indicates the total picture of the microcontroller’s internal operations at any point of time for your convenience.

There is a single line assembling facility available when editing programs in Program Memory window. You can view Mnemonics, Address, SFR Bits, SFR Registers in different colours.

In Data Memory window you can view and edit data in either Hex code or ASCII.

Benefit: You can simply define alphanumerical messages in ASCII mode. Useful feature when using LCD modules in the projects.

In Register and SFR windows, the name of the registers and SFRs are indicated to make you understand program flow easily. All the registers and SFRs are tabulated for your convenience.

Special features

Special Features

This is the basic window arrangement to generate your target program and compile the same.

The Project window will show the list of files used in the project. In the Editor window you can type and edit your program. Editor window supports color syntax facility to get clear idea about the program. Output window will display the compiler output details.

Template created by Topview Simulator for the selected device compatible with the SDCC C compiler.

This is the new ClearView configuration of the Topview Simulator.

In this viewing, all the details of the controller are presented in a screen. This mode is very useful while debugging the programs in assembly language.

This window shows an example of using four lines by 20 characters LCD module in the program. There is option to select the LCD module from one line by 16 characters to four lines by 20 characters.

In the Topview Simulator, options are provided to simulate the LCD with or without backlight and either in 8- bit or 4-bit mode.

The Simulator also generates the C code for these embedded modules.

This is the mixed mode viewing of the both C and Assembly language in a single window.

This is another sample placement of windows on the screen.

Here the PC value is shown in the editor by a yellow color arrow. In the bottom, the variables in the current project are displayed in the watch window. You can edit the values of the variables here itself. The active variables are displayed in blue color and the inactive variables are displayed in green color.

C Source level debugging facility is available for both KEIL and SDCC compilers. You can debug your program using options like breakpoint execution, single step trace, stepover and full speed execution from C source level.

The screen shot shows another example that reads and displays the real time clock data from IIC Bus based RTC device PCF8583 and on a 2 lines by 16 characters LCD module.

In the right side, the contents of the RTC device are displayed in a separate window.

This screen shows an example using the serial port of the 8051 controller and the simulated host.

In this example, both 8051 controller and the host serial port are simulated and displayed in a single window. This example program reads a byte of data from the host serial port and the same is sent to the host after taking 1’s complement of that byte.

This screen shot shows an example program written in C with structures.

Topview simulator generates code for both internal and external modules either in C or Assembly language.

This screen shows the code generated by the Topview Simulator for serial port in C language. Generated code contains enough commands to understand the generated code very easily.

This screen shows the code generated by the Topview Simulator for LCD module in C language. Generated code will contain enough comments to understand the generated code very easily.