Download demo version of SC51
Click
here to download the demo of SC51: sc51d.zip (about 5.6
MBytes).
(Includes user's manual files - SC51.PDF and SIDE51.PDF)
Click here to download SC51
user's manual: SC51.PDF
(about 170KBytes)
Click here to download
SIDE51 quickstart manual: SIDE51.PDF
(about 750 KBytes)
Please read
instructions to install the demo version of SC51. You may also read quick-start instructions to create your
first project and compile it and debug it.
Instructions
to install demo of SC51 :
Create a temporary folder on your
hard disk (e.g. C:\TEMP) and copy the file sc51d.zip
in it. To install the demo version, open (unzip) sc51d.zip.
Extract the unzipped files in the same folder (C:\TEMP). Now you will see the
file SETUP.EXE in the same folder. Now, run SETUP.EXE (double-click on it) and
follow the instructions to install the demo.
Once the installation is
complete, the option "SPJ Systems' SC51" will be added to your
Start/Programs menu. It contains 3 programs : "SIDE51",
"Simulator", and "SPJTerminal". Click on "SIDE51"
to start the Integrated Development Environment. Create a project, write your
own program and compile and debug it. Or you may read instructions to create your first project
and compile it and debug it.
To know more about the C
compiler, you can look at the user's manual files. You will find a folder HLP
in the path where you installed SC51 demo. This folder contains the files SC51QuickStartForC.PDF,
SC51.PDF, SASM51.PDF, SLINK51.PDF and SIDE51.PDF. These are quick start and
detail users manuals of the compiler, assembler, linker and IDE. Please go
through them to find more about all these components of SC51.
Even though this is DEMO ONLY
version, it is full feature compiler with only one limitation: It will not
produce or simulate programs larger than (approximately) 2KBytes.However this
limitation applies to this free demo version only; the actual compiler (which
you can purchase) does not have any such limit on the code size (except the 64K
limit imposed by 8051 architecture).
Quick-start
Instructions to create / compile / debug a project using SC51 :
- Start
the SIDE51 program (i.e. the Integrated Development Environment)
- From Project
menu, select Close project.
- From Project
menu, select New Project. The Open dialog window will
be displayed. Select the desired path where you wish to create this new
project. (for example, C:\SPJ). CAUTION: the path and filename must not
contain space or other special characters such as tab, comma, semicolon
etc. In the “File name” field, type the name of the project, without
any extension. For example, you may type “PROG1”. Then click on the “Open”
button.
- The
action in the previous step will display the “Project Settings” dialog
window. This dialog window has 3 different parts named “Compiler Options”,
“Assembler / Linker Options”, and “Source Files”. Any of these 3 parts can
be displayed by clicking on the corresponding name near the top of this
dialog window. Currently, the “Compiler Options” will be automatically
displayed. If the target micro-controller (must be a member of 8051
family) is known, you may select the appropriate Manufacturer from the
list; and then select the appropriate micro-controller from the device
list. If the target micro-controller is not known or if you cannot find it
in the list, then you may simply select “Intel” as the manufacturer and
“8051” or “8052” as the micro-controller. Note that when you select “8051”
as the micro-controller, the “Internal RAM (Bytes)” selection
automatically changes to 128. Similarly, when you select “8052” as the
micro-controller, the “Internal RAM (Bytes)” selection automatically
changes to 256. Select 8051 or 8052, depending on whether your target
micro-controller has 128 or 256 bytes internal RAM, respectively.
- In the
same window, the “Crystal frequency” field is also displayed with default
value as 12 MHz. If your target uses different crystal frequency, then you
may change it. However, the current version of Compiler / Assembler does
not actually use this value.
- Click
on “Assembler / Linker Options” to display that part of the dialog window.
Under “Program Memory (Code Memory) map:” you may enter the start and end
address of program memory available in your target. This program memory
maybe internal (inside the micro-controller) or external. For example, if
the target micro-controller is Atmel 89C52 without any external memory,
then you may enter start address as 0000 and end address as 1FFF.
- Similarly,
enter start and end addresses of the XDATA (i.e. external data memory).
This XDATA memory maybe on-chip or off-chip. Only start and end addresses
are important, but not physical location.
- The
Compiler / Assembler automatically produces Intel HEX format file (.HEX
file). If you also require the binary image file (.BIN file), then check
the box labeled “Generate .BIN file (ROM image)”.
- If you
plan to use In-Circuit-Emulator (ICE) for debugging, then check the box
labeled “Generate Absolute OMF file”. This will create .AOM file, which is
required by the ICE.
- Click
on “Source Files” to display that part of the dialog window. This window
will indicate that IDE has automatically added 2 files in this new
project: PROG1.C and STARTUP.ASM. The STARTUP.ASM file is automatically
created by the IDE and is required for all C projects. Similarly, the IDE
has automatically created an empty C file (PROG1.C). If the file PROG1.C
already exists in the same path, then IDE would not create it or modify
it; but it will anyway add it to the project automatically. If you wish to
add more files in this project, then click on the “Add file” button,
select the desired filename and then click on “Open” button. Now the
Project Settings dialog will indicate that selected file has been added
into the project. When all necessary files have been added to the project,
click “OK” button to create this new project.
- The
PROG1.C file created by the IDE will be an empty file containing only the
frame of “main” function. You may write the desired program statements in
this file (or other files that you may have added to the project). When
done, select Save from File menu. If you have
modified more than one source files, then select Save All
from File menu.
- From
the Compile menu, select Build. This will
invoke the Compiler to compile the file PROG1.C; and further (assuming no
errors) invoke the linker to create the .HEX and other files. If there are
any errors or warnings during the process of compiling, assembling or
linking, then those will be displayed in the output window (below the
editor window). If there are errors, then you may correct those by making
appropriate changes to the program; select Save from File
menu to save the changes and then again select Build from Compile
menu. Repeat this until there are no errors.
- Now we
are ready to simulate this program. To do so, simply select Simulator
from the Tools menu. Simulator for 8051 is an independent
program and it will be launched by this action and the current project
(PROG1) will be automatically opened. The Simulator will automatically
display 5 windows (clockwise, from left-top corner): Program window,
Serial window, Internal RAM watch window, SFR watch window, Symbols watch
window. As the names indicate, these windows display the corresponding
information. So, the same program that you typed (PROG1.C) will be visible
in the Program window.
- To
single step through the program, you may select Single Step
from the Run menu. Pressing F7 key is also
equivalent to selecting Single Step from the Run
menu. When you do so, the program window will indicate that one C
statement has been executed and the next statement will be highlighted.
You may repeat the same to single step through the entire program.
- While
single stepping through the program, the contents of general purpose
registers (R0-R7) as well SFRs will be displayed in the SFR Watch Window.
The register / SFR contents can be seen changing as effect of each
executed instruction. It is also possible to modify register / SFR contents
by double clicking on it’s name. (Contents of PC can not be modified).
- Similarly,
it is possible to observe values of variables. To do so, right click in
the Variables Watch Window and select Add from the pop-up
menu. Select the desired variable(s) to watch and click “OK” button. This
will display the names and values of the selected variables in the
variables watch window. It is also possible to modify a variable value by
double-clicking on it’s name.
- The
Serial window displays the activity related to 8051 serial port. i.e. any
character transmitted to the serial port is displayed in this window.
Similarly, it is possible to simulate receiving characters. To do so,
simply click inside the Serial window and type any character(s) that you
wish to simulate as received.
- When
you are through with debugging, select Exit from File
menu to close the Simulator. Then (if necessary) you may edit the program,
build it again and start the simulator to debug again. Please note, only
one instance of Simulator program should be started at any time. It is
recommended to close the Simulator while making any changes to the
program.