Topview Simulator R8C/Tiny Devices.Introduction.SANGO - R8C/Tiny System Simulator gives an excellent simulation environment for the industry’s most popular 16-bit microcontroller family, R8C/Tiny. It gives all required facilities to enable the system designers to start projects right from the scratch and finish them with ease and confidence.
SANGO is the total 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 easily learn about R8C/Tiny based embedded solutions without any hardware. If you are an experienced designer, you may find most of the required facilities built in the simulator enabling you to complete your next project without waiting for the target hardware. Device Selection. Devices in the groups R8C/11, R8C/13, R8C/1A, R8C/1B, R8C/24 and R8C/25 of R8C/Tiny family are supported. Program Editing. Powerful editing features for generating your programs and the facility to call an external Assembler to process input programs. ClearView. ClearView facility gives all the internal architectural details in multiple windows. Information about the Program, Memory, Registers, SFRs 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, SingleStep, StepOver 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 this Simulator simplifies the most difficult operation of the program development, debugging, into a very simple and interesting task. Simulation Facilities. Powerful simulation facilities are incorporated to complete your next embedded solution:
Code Generation Facilities.Powerful and versatile Code Generating facility enables you to generate the exact and compact code for many possible application oriented interfacing options. You can simply define your exact needs and get the target 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.
Device Selection and Clock Setting.Select the device group from the list.
ClearView Window Structure.This is an optimized arrangement where windows are strategically placed in the display. Display area of the monitor is divided into five windows. Windows meant for Program, Register, RAM Area, Code Area, and SFR are placed in the ClearView. Size and position of the windows can’t be changed. Scrolling facility is available wherever it is required. This ClearView gives a complete picture on the internal architecture in a single screen while debugging the program code. I/O Simulation Window
I/O window comes with all the ports of I/O lines with facility to simulate timers/counters at the respective I/O pins. Interrupt conditions can be simulated. Facility to test ADC is also available in this window.
CPU Status Window.
The CPU Status window gives the details of the CPU clock frequency, on-chip oscillators, voltage detection circuits, watchdog timer, etc. Simulated Host for Serial Port.Host window acts as the host to the serial port UART0, UART1 and SSU.
On-chip Serial Port Simulation.This window simulates both the channels of the serial port.
Simulated Host for the SSU.
This window is the simulated host for the on-chip SSU.
LCD Module Configuration for Simulation.
BreakPoint Setting.
Code Generation.Code generation facility is available for all on-chip peripherals and external peripherals. Place the cursor at the point on the opened text file in the simulator. From the Code generation menu any module is selected and after proper settings code is generated and gets pasted at the cursor point. Code for CPU Initialization.
Click generate button to generate the code. Code Generation for Two Lines by 16 Characters LCD Interface.
Code Generation for Internal Peripheral - Timer RA. Code is generated for all the available modes of the Timer RA. For example the ‘Pulse output mode” is discussed here.
Click the generate button to generate the code. Project Management.
SANGO gives you facility to develop your programs right from the scratch. SANGO’s built-in Text Editor takes care of program entry operations. You can also downl9oad any input program from the disk. Program development starts by creating a new project. The project window gives the details of the files used in the project. The editor window displays the contents of the ‘C’ files. The project files can be compiled using the ‘C’ Compiler for R8C/Tiny. The compiler output is captured and displayed in the Output window. Use ‘Dowload’ option to download the mot file in to the simulator for testing. Example 1 - Study of On-chip ADC with 8 Numbers of Point LEDs.In this example the on-chip ADC is read and the digital data from ADC is displayed on eight numbers of point LEDs. The ADC is configured in 8 bit, one shot mode. The variable analog voltage can be given to the selected ADC input through the slider provided in the I/O window. For study purpose, channel 7 of ADC is used and the point LEDs are connected to the port line P1_0 to P1_7. In the program, the start conversion signal is given, and the converted digital data is read from ADC after getting the end of conversion signal. The read digital data is send to the port 1. This process is repeated continuously. Example 2 - Two Lines by 16 Characters LCD Interface.This example deals with the interfacing of a two lines by 16 characters LCD module with micon in 4bit bus mode. Port lines P2_1 to P2_3 are connected to the control lines RS, R/W and E. The port lines P2_4 to P2_5 are used to send the data to LCD module. In the program, the LCD module is first initialized in 2 lines, 4 bit bus mode. Then a 2 line message is displayed on LCD as shown in the figure. Example 3 - Serial Port.
This study example gives a picture of the on-chip serial port and the simulated host serial port in asynchronous mode. The UART0 of R8C/Tiny micon is used in this study at 9600 baud rate. In the program, the UART0 is initialized at 9600 baud and a message “Testing…” is sent to the host. The host will receive the message and displayed the same on the screen. Data transmitted and received for both on-chip UART and the host are displayed on screen as shown. There is an option to select the display format as either ASCII or Hex. Project - Programmable Timer.This is an R8C/Tiny based useful timer meant for controlling a relay/solenoid as per timing schedule. It can be used in many applications where it is required to switch On/Off lights, motors and etc. at the fixed predefined timings. The hardware is very simple. The R8C/Tiny micon controls every thing. There is an IIC RTC available to keep track of the current time. The LCM with 2 line X 16 size display combines with the keyboard to give the required interacting facility. Download Topview Simulator. To download Topview Simulator for the R8C/Tiny Microcontrollers free of cost, Click here!
|
|