SlideShare une entreprise Scribd logo
1  sur  20
Télécharger pour lire hors ligne
Copyright © mikroElektronika, June 2013. All rights reserved.
Page 2
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
The Atmel name, logo and products names are trademarks of Atmel in the U.S.A and other countries.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
Page 3
1. Introduction to mikroC PRO for 8051 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 04
2. Hardware Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .05
3. Creating a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 06
	 Step 1 - Project Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 07
	 Step 2 - Memory Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  10
	 Step 3 - Add files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11
	 Step 4 - Include Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
	 Step 5 - Finishing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
	 Blank new project created . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
4. Code Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5. Building the Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
6. What’s next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Table of Contents
Page 4
mikroC PRO for 8051 organizes
applications into projects consisting of a
single project file (file with the .mcp51
extension) and one or more source files
(files with the .c extension). The mikroC PRO
for 8051 compiler allows you to manage
several projects at a time. Source files can be
compiled only if they are part of the project.
In this reference guide, we will create a
new project, write code, compile it and test
the results. The purpose of this project is
to make microcontroller PORT0 LEDs blink,
which will be easy to test.
A project file contains:
• Project name and optional description;
• Target device in use;
• Device clock;
• List of the project source files;
• Binary files (*.mcl); and
• Other files.
1. Introduction to mikroC PRO for 8051
05
06
07
01 04 07
02 05 08
03 06
Main Toolbar
Code Explorer
Project Settings
Messages
Code Editor
Image Preview
Project Manger
Library Manager
03
02
04
01
08
Page 5
Let’s make a simple “Hello world” example
for the selected microcontroller. First thing
embedded programmers usually write is a simple
LED blinking program. So, let’s do that in a few
simple lines of C code.
LED blinking is just turning ON and OFF LEDs that
are connected to desired PORT pins. In order to see
the example in action, it is necessary to connect
the target microcontroller according to schematics
shown on Figure 2-1. In the project we are about
to write, we will use only PORT0, so you should
connect the LEDs to PORT0 only.
Prior to creating a new project, it is necessary to do the following:
Step 1: Install the compiler
Install the mikroC PRO for 8051 compiler from the Product DVD or
download it from the MikroElektronika website:
http://www.mikroe.com/mikroc/8051/
Step 2: Start up the compiler
Double click on the compiler icon in the Start menu, or on your
desktop to Start up the mikroC PRO for 8051 compiler. The mikroC
PRO for 8051 IDE (Integrated Development Environment) will appear
on the screen. Now you are ready to start creating a new project.
2. Hardware Connection
VCC-MCU
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
C1 C2 C3
X1
R1
U1 U2
R2 P0.7
P0.6
P0.5
P0.4
P0.2
P0.1
P0.0
P0.3
R3
4K7
R7
4K7
R4
4K7
R8
4K7
R5
4K7
R9
4K7
R6
4K7
R10
4K7
LD0
LED
LD4
LED
LD1
LED
LD5
LED
LD2
LED
LD6
LED
LD3
LED
LD7
LED
Figure 2-1:
Hardware connection schematics
Page 6
The process of creating a new project is
very simple. Select the New Project option
from the Project menu as shown below.
The New Project Wizard window appears.
It can also be opened by clicking the New
Project icon from the Project toolbar.
The New Project Wizard (Figure 3-1)
will guide you through the process of
creating a new project. The introductory
window of this application contains a list
of actions to be performed when creating
a new project.
Click Next.
3. Creating a New Project
Figure 3-1: Introductory window of the New Project Wizard
01
01
Page 7
First thing we have to do is to specify the
general project information. This is done
by selecting the target microcontroller, it’s
operating clock frequency, and of course
- naming our project. This is an important
step, because compiler will adjust the
internal settings based on this information.
Default configuration is already suggested
to us at the begining. We will not change
the microcontroller, and we will leave the
default AT89S8253 as the choice for this
project.
Step 1 - Project Settings
Figure 3-2: You can specify project name, path, device and clock in the first step
Page 8
If you do not want to use the suggested
path for storing your new project, you can
change the destination folder. In order to
do that, follow a simple procedure:
Step 1 - Project Settings
Figure 3-3: Change the destination folder using Browse For Folder dialog
01
01
02
03 03
02
Click the Browse button of the Project
Settings window to open the Browse
for Folder dialog.
Select the desired folder to be the
destination path for storing your new
project files.
Click the OK button to confirm your
selection and apply the new path.
Page 9
Once we have selected the destination
project folder, let’s do the rest of the project
settings:
Step 1 - Project Settings
Figure 3-4: Enter project name and change device clock speed if necessary
01
02
03
03
01
02
Enter the name of your project. Since
we are going to blink some LEDs,
it’s appropriate to call the project
“LedBlinking”
For this demonstration, we will use
the default external crystal 10MHz
clock. Clock speed depends on
your target hardware. However you
configure your hardware, make sure to
specify the exact clock (Fosc) that the
microcontroller is operating at.
Click the OK button to proceed.
Page 10
The memory model determines which
default memory type will be used for
function arguments, automatic variables,
and declarations that include no explicit
memory type.
Since our project is very simple, we will
choose the Small memory model. In this
model, all variables, by default, reside in
the internal data memory of the 8051
system. Variable access in this memory
model is very efficient.
Step 2 - Memory model
Figure 3-5: Choose the memory model. “Small” is the best choice for our project.
02
01
Select Small memory model.
Click Next.
01
02
Page 11
This step allows you to include additional
files that you need in your project: some
headers or source files that you already
wrote, and that you might need in further
development. Since we are building a
simple application, we won’t be adding any
files at this moment.
Step 3 - Add files
01
Figure 3-6: Add existing headers, sources or other files if necessary
Click Next.01
Page 12
Following step allows you to quickly set
whether you want to include all libraries in
your project, or not. Even if all libraries are
included, they will not consume any memory
unless they are explicitely used from within
your code. The main advantage of including
all libraries is that you will have over 250
functions available for use in your code
right away, and visible from Code Assistant
[CTRL+Space]. We will leave this in default
configuration:
Step 4 - Include Libraries
02
01
Figure 3-7: Include all libraries in the project, which is a default configuration.
01
02
Make sure to leave “Include All”
selected.
Click Next.
Page 13
After all configuration is done, click “Finish”
to complete the New Project wizard. You
can still go back and change any settings if
necessary.
Step 4 - Finishing
Figure 3-8: Finish the New project wizard, or go back and make some changes.
01
Click Finish.01
Page 14
New project is finally created. A new source
file called “LedBlinking.c” is created and
it contains the void main() function,
which will hold the program. You may notice
that project is configured according to the
settings done in the New Project Wizard.
Blank new project created
Figure 3-9: New blank project is created with your configuration
Page 15
Time has come to do some coding. First
thing we need to do is to put PORT0 LEDs
into initial state. For example, let’s fill it with
logic zeros on every pin:
Finally, in a while() loop we will toggle the
PORT0 value, and put a 1000 ms delay, so
the blinking is not too fast.
void main() {
// Turn OFF LEDs on PORT0
P0 = 0;
while(1) {
// Toggle LEDs on PORT0
P0 = ~P0;
// Delay 1000 ms
Delay_ms(1000);
}
}
// Turn OFF all LEDs on PORT0
P0 = 0;
while(1) {
// Toggle LEDs on PORT0
P0 = ~P0;
// Delay 1000 ms
Delay_ms(1000);
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
LedBlinking.c - source code
4. Code Example
Figure 4-1: Complete source code of the PORT0 LED blinking
Page 16
Figure 4-2: This is how the code looks
written in compiler code editor window
Page 17
When we are done writing our first
LedBlinking code, we can now build
the project and create a .HEX file
which can be loaded into our target
microcontroller, so we can test the
program on real hardware. “Building”
includes compilation, linking and
optimization which are done automatically. Build your code by clicking
on the icon in the main toolbar, or simply go to Build menu and
click Build [CTRL+F9]. Message window will report the details of
the building process (Figure 5-1). Compiler automatically creates
necessary output files. LedBlinking.hex (Figure 5-2) is among them.
5. Building the Source
Figure 5-1: After the successful compilation and linking, the message window should look something like this
Figure 5-2: Listing of project files after building is done
Page 18
mikroC PRO for 8051 comes with over 90 examples which demonstrate a variety of
features. They represent the best starting point when developing a new project. You will find
projects written for mikroElektronika development boards, additional boards, internal MCU
modules and other examples. This gives you a head start in development, and you don’t have
to do it all from scratch. In most cases, you can combine different simple projects to create a
more complex one. For example, if you want to build a date, time and temperature semaphore
on 7-segment display, you can combine RTC and temperature sensor examples with Seven
Segment Display example and do the job in much less time. All projects are delivered with
a working .HEX files, so you don’t have to buy a compiler license in order to test them. You
can load them into your development board right away without the need for building them.
Figure 6-1: Project explorer window
enables you to easily access provided
examples and load them quickly
6. What’s next?
If you want to find answers to your questions on many interesting topics we invite you to
visit our forum at http://www.mikroe.com/forum/ and browse through more than 200
thousand posts. You are likely to find just the right information for you.
On the other hand, if you want to download more free projects and libraries, or share your
own code, please visit the Libstock website http://www.libstock.com/. With user profiles,
you can get to know other programmers, and subscribe to receive notifications on their code.
Community
More examples
Page 19
DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any
other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or
transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use,
but not for distribution. Any modification of this manual is prohibited.
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or
conditions of merchantability or fitness for a particular purpose.
MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall
MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for
loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if
MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any
time without prior notice, if necessary.
TRADEMARKS
The MikroElektronika name and logo, the MikroElektronika logo, mikroC™
, mikroBasic™
, mikroPascal™
, mikroProg™
, Easy8051™
, mikroBUS™
, Click Boards™
, and
mikromedia™
are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.
All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only
used for identification or explanation and to the owners’ benefit, with no intent to infringe.
Copyright © MikroElektronika, 2013, All Rights Reserved.
HIGH RISK ACTIVITIES
The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazard-
ous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic
control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or
environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High
Risk Activities.
If you want to learn more about our products, please
visit our website at www.mikroe.com. If you are
experiencing some problems with any of our products or
just need additional information, please place your ticket
at www.mikroe.com/support/ If you have any questions,
comments or business proposals, do not hesitate to
contact us at office@mikroe.com
Creating the first project in
mikroC for 8051 ver. 1.00
Designed by
MikroElektronika,
June 2013.

Contenu connexe

Tendances

如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備sharetech
 
All about Firewalls ,IPS IDS and the era of UTM in a nutshell
All  about Firewalls ,IPS IDS and the era of UTM in a nutshellAll  about Firewalls ,IPS IDS and the era of UTM in a nutshell
All about Firewalls ,IPS IDS and the era of UTM in a nutshellHishan Shouketh
 
Arquitectura de la nube Modelos de Servicio y Despliegue
Arquitectura de la nube Modelos de Servicio y DespliegueArquitectura de la nube Modelos de Servicio y Despliegue
Arquitectura de la nube Modelos de Servicio y DespliegueFrancis Figueroa
 
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)志弘 李
 
VLAN Trunking Protocol
VLAN Trunking ProtocolVLAN Trunking Protocol
VLAN Trunking ProtocolNetwax Lab
 
Avaya Aura Session Manager
Avaya Aura Session ManagerAvaya Aura Session Manager
Avaya Aura Session ManagerMotty Ben Atia
 
Utilizacion de la herramienta PRTG Network monitor
Utilizacion de la herramienta PRTG Network monitorUtilizacion de la herramienta PRTG Network monitor
Utilizacion de la herramienta PRTG Network monitorRita Aguilar
 
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...Amir Jafari
 
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...Cisco Canada
 
User id installation and configuration
User id installation and configurationUser id installation and configuration
User id installation and configurationAlberto Rivai
 
9781839216923-AWS_PENETRATION_TESTING.pdf
9781839216923-AWS_PENETRATION_TESTING.pdf9781839216923-AWS_PENETRATION_TESTING.pdf
9781839216923-AWS_PENETRATION_TESTING.pdfOmar Diaz
 
netis WF2412無線橋接模式 – Repeater
netis WF2412無線橋接模式 – Repeaternetis WF2412無線橋接模式 – Repeater
netis WF2412無線橋接模式 – Repeater臺灣塔米歐
 
Mikrotik basic configuration
Mikrotik basic configurationMikrotik basic configuration
Mikrotik basic configurationTola LENG
 
FortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZFortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZIPMAX s.r.l.
 
Insights on the configuration and performances of SOME/IP Service Discovery
Insights on the configuration and performances of SOME/IP Service DiscoveryInsights on the configuration and performances of SOME/IP Service Discovery
Insights on the configuration and performances of SOME/IP Service DiscoveryNicolas Navet
 
6.5.1.2 packet tracer layer 2 security instructor
6.5.1.2 packet tracer   layer 2 security instructor6.5.1.2 packet tracer   layer 2 security instructor
6.5.1.2 packet tracer layer 2 security instructorSalem Trabelsi
 

Tendances (20)

如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備如何使用Console連接眾至UTM設備
如何使用Console連接眾至UTM設備
 
All about Firewalls ,IPS IDS and the era of UTM in a nutshell
All  about Firewalls ,IPS IDS and the era of UTM in a nutshellAll  about Firewalls ,IPS IDS and the era of UTM in a nutshell
All about Firewalls ,IPS IDS and the era of UTM in a nutshell
 
Arquitectura de la nube Modelos de Servicio y Despliegue
Arquitectura de la nube Modelos de Servicio y DespliegueArquitectura de la nube Modelos de Servicio y Despliegue
Arquitectura de la nube Modelos de Servicio y Despliegue
 
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
Fortinet Fortigate 60D 中文安裝手冊 ( Ver 5.2.3)
 
Fortinet
FortinetFortinet
Fortinet
 
VLAN Trunking Protocol
VLAN Trunking ProtocolVLAN Trunking Protocol
VLAN Trunking Protocol
 
Avaya Aura Session Manager
Avaya Aura Session ManagerAvaya Aura Session Manager
Avaya Aura Session Manager
 
WiFi - IEEE 802.11
WiFi - IEEE 802.11WiFi - IEEE 802.11
WiFi - IEEE 802.11
 
Useful cli commands v1
Useful cli commands v1Useful cli commands v1
Useful cli commands v1
 
Utilizacion de la herramienta PRTG Network monitor
Utilizacion de la herramienta PRTG Network monitorUtilizacion de la herramienta PRTG Network monitor
Utilizacion de la herramienta PRTG Network monitor
 
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
CCNA Lab 4-Configuring EtherChannels and optimizing Spanning Tree Protocol on...
 
NAT Ccna
NAT CcnaNAT Ccna
NAT Ccna
 
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...
Collaboration Architecture Design: Unified Call Control and Dial plans for Vo...
 
User id installation and configuration
User id installation and configurationUser id installation and configuration
User id installation and configuration
 
9781839216923-AWS_PENETRATION_TESTING.pdf
9781839216923-AWS_PENETRATION_TESTING.pdf9781839216923-AWS_PENETRATION_TESTING.pdf
9781839216923-AWS_PENETRATION_TESTING.pdf
 
netis WF2412無線橋接模式 – Repeater
netis WF2412無線橋接模式 – Repeaternetis WF2412無線橋接模式 – Repeater
netis WF2412無線橋接模式 – Repeater
 
Mikrotik basic configuration
Mikrotik basic configurationMikrotik basic configuration
Mikrotik basic configuration
 
FortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZFortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZ
 
Insights on the configuration and performances of SOME/IP Service Discovery
Insights on the configuration and performances of SOME/IP Service DiscoveryInsights on the configuration and performances of SOME/IP Service Discovery
Insights on the configuration and performances of SOME/IP Service Discovery
 
6.5.1.2 packet tracer layer 2 security instructor
6.5.1.2 packet tracer   layer 2 security instructor6.5.1.2 packet tracer   layer 2 security instructor
6.5.1.2 packet tracer layer 2 security instructor
 

En vedette

7 serv1 16_what's_next sa_courses_july 2012
7 serv1 16_what's_next sa_courses_july 20127 serv1 16_what's_next sa_courses_july 2012
7 serv1 16_what's_next sa_courses_july 2012James M. Njoroge
 
11 busca e_eliminação_de_erros-1
11 busca e_eliminação_de_erros-111 busca e_eliminação_de_erros-1
11 busca e_eliminação_de_erros-1confidencial
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01confidencial
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeconfidencial
 

En vedette (6)

7 serv1 16_what's_next sa_courses_july 2012
7 serv1 16_what's_next sa_courses_july 20127 serv1 16_what's_next sa_courses_july 2012
7 serv1 16_what's_next sa_courses_july 2012
 
CLP S7 300 E S7 400
CLP S7 300 E S7 400CLP S7 300 E S7 400
CLP S7 300 E S7 400
 
11 busca e_eliminação_de_erros-1
11 busca e_eliminação_de_erros-111 busca e_eliminação_de_erros-1
11 busca e_eliminação_de_erros-1
 
A d swincc05e
A d swincc05eA d swincc05e
A d swincc05e
 
01tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp0101tiaportal handson-basicov11v2-140421084257-phpapp01
01tiaportal handson-basicov11v2-140421084257-phpapp01
 
Fluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verdeFluxograma processo acucar_alcool_etanol_verde
Fluxograma processo acucar_alcool_etanol_verde
 

Similaire à Creating first project in mikroC PRO for 8051

Petrel Ocean wizards and developers tools 2013
Petrel Ocean wizards and developers tools 2013Petrel Ocean wizards and developers tools 2013
Petrel Ocean wizards and developers tools 2013SohrabRoshan
 
Iptim
IptimIptim
IptimIptim
 
Brightwork Project Management Introductory Guide - From Atidan
Brightwork Project Management Introductory Guide - From AtidanBrightwork Project Management Introductory Guide - From Atidan
Brightwork Project Management Introductory Guide - From AtidanDavid J Rosenthal
 
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern Approach
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern ApproachUsing ADO.NET Entity Framework in Domain Driven Design: A Pattern Approach
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern ApproachHoan Phuc
 
generate IP CORES
generate IP CORESgenerate IP CORES
generate IP CORESguest296013
 
CIC_Manual.pdf
CIC_Manual.pdfCIC_Manual.pdf
CIC_Manual.pdfRMani7
 
Autocad Mep Gettingstarted
Autocad Mep GettingstartedAutocad Mep Gettingstarted
Autocad Mep Gettingstartedguestedb0170
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdfEMERSON EDUARDO RODRIGUES
 
Test Lab Guide: Windows Server 2012 R2 Base Configuration
Test Lab Guide: Windows Server 2012 R2 Base ConfigurationTest Lab Guide: Windows Server 2012 R2 Base Configuration
Test Lab Guide: Windows Server 2012 R2 Base ConfigurationTiago Henrique Ribeiro Ferreira
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7ionut grozav
 
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...pratiksha16570
 

Similaire à Creating first project in mikroC PRO for 8051 (20)

Openobject bi
Openobject biOpenobject bi
Openobject bi
 
Openobject bi
Openobject biOpenobject bi
Openobject bi
 
Petrel Ocean wizards and developers tools 2013
Petrel Ocean wizards and developers tools 2013Petrel Ocean wizards and developers tools 2013
Petrel Ocean wizards and developers tools 2013
 
Iptim
IptimIptim
Iptim
 
UDP Report
UDP ReportUDP Report
UDP Report
 
Brightwork Project Management Introductory Guide - From Atidan
Brightwork Project Management Introductory Guide - From AtidanBrightwork Project Management Introductory Guide - From Atidan
Brightwork Project Management Introductory Guide - From Atidan
 
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern Approach
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern ApproachUsing ADO.NET Entity Framework in Domain Driven Design: A Pattern Approach
Using ADO.NET Entity Framework in Domain Driven Design: A Pattern Approach
 
generate IP CORES
generate IP CORESgenerate IP CORES
generate IP CORES
 
Embedded2003
Embedded2003Embedded2003
Embedded2003
 
CIC_Manual.pdf
CIC_Manual.pdfCIC_Manual.pdf
CIC_Manual.pdf
 
User guide
User guideUser guide
User guide
 
Autocad Mep Gettingstarted
Autocad Mep GettingstartedAutocad Mep Gettingstarted
Autocad Mep Gettingstarted
 
3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf3- Siemens Open Library - Example Object Configuration.pdf
3- Siemens Open Library - Example Object Configuration.pdf
 
Test Lab Guide: Windows Server 2012 R2 Base Configuration
Test Lab Guide: Windows Server 2012 R2 Base ConfigurationTest Lab Guide: Windows Server 2012 R2 Base Configuration
Test Lab Guide: Windows Server 2012 R2 Base Configuration
 
sada_shopping
sada_shoppingsada_shopping
sada_shopping
 
Obbridge docs
Obbridge docsObbridge docs
Obbridge docs
 
DotNetNuke
DotNetNukeDotNetNuke
DotNetNuke
 
InfoPay v5 Developers Manual
InfoPay v5 Developers ManualInfoPay v5 Developers Manual
InfoPay v5 Developers Manual
 
Simatic getting-started-pcs7
Simatic getting-started-pcs7Simatic getting-started-pcs7
Simatic getting-started-pcs7
 
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...
OpenText Content Server CE 22.1 - OpenText Enterprise Connect Plug-in for Con...
 

Dernier

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 

Dernier (20)

General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Creating first project in mikroC PRO for 8051

  • 1. Copyright © mikroElektronika, June 2013. All rights reserved.
  • 2. Page 2 I want to express my thanks to you for being interested in our products and for having confidence in MikroElektronika. The primary aim of our company is to design and produce high quality electronic products and to constantly improve the performance thereof in order to better suit your needs. The Atmel name, logo and products names are trademarks of Atmel in the U.S.A and other countries. TO OUR VALUED CUSTOMERS Nebojsa Matic General Manager
  • 3. Page 3 1. Introduction to mikroC PRO for 8051 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 04 2. Hardware Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .05 3. Creating a New Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 06 Step 1 - Project Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 07 Step 2 - Memory Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Step 3 - Add files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 Step 4 - Include Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Step 5 - Finishing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Blank new project created . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 4. Code Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 5. Building the Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 6. What’s next . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Table of Contents
  • 4. Page 4 mikroC PRO for 8051 organizes applications into projects consisting of a single project file (file with the .mcp51 extension) and one or more source files (files with the .c extension). The mikroC PRO for 8051 compiler allows you to manage several projects at a time. Source files can be compiled only if they are part of the project. In this reference guide, we will create a new project, write code, compile it and test the results. The purpose of this project is to make microcontroller PORT0 LEDs blink, which will be easy to test. A project file contains: • Project name and optional description; • Target device in use; • Device clock; • List of the project source files; • Binary files (*.mcl); and • Other files. 1. Introduction to mikroC PRO for 8051 05 06 07 01 04 07 02 05 08 03 06 Main Toolbar Code Explorer Project Settings Messages Code Editor Image Preview Project Manger Library Manager 03 02 04 01 08
  • 5. Page 5 Let’s make a simple “Hello world” example for the selected microcontroller. First thing embedded programmers usually write is a simple LED blinking program. So, let’s do that in a few simple lines of C code. LED blinking is just turning ON and OFF LEDs that are connected to desired PORT pins. In order to see the example in action, it is necessary to connect the target microcontroller according to schematics shown on Figure 2-1. In the project we are about to write, we will use only PORT0, so you should connect the LEDs to PORT0 only. Prior to creating a new project, it is necessary to do the following: Step 1: Install the compiler Install the mikroC PRO for 8051 compiler from the Product DVD or download it from the MikroElektronika website: http://www.mikroe.com/mikroc/8051/ Step 2: Start up the compiler Double click on the compiler icon in the Start menu, or on your desktop to Start up the mikroC PRO for 8051 compiler. The mikroC PRO for 8051 IDE (Integrated Development Environment) will appear on the screen. Now you are ready to start creating a new project. 2. Hardware Connection VCC-MCU P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0 C1 C2 C3 X1 R1 U1 U2 R2 P0.7 P0.6 P0.5 P0.4 P0.2 P0.1 P0.0 P0.3 R3 4K7 R7 4K7 R4 4K7 R8 4K7 R5 4K7 R9 4K7 R6 4K7 R10 4K7 LD0 LED LD4 LED LD1 LED LD5 LED LD2 LED LD6 LED LD3 LED LD7 LED Figure 2-1: Hardware connection schematics
  • 6. Page 6 The process of creating a new project is very simple. Select the New Project option from the Project menu as shown below. The New Project Wizard window appears. It can also be opened by clicking the New Project icon from the Project toolbar. The New Project Wizard (Figure 3-1) will guide you through the process of creating a new project. The introductory window of this application contains a list of actions to be performed when creating a new project. Click Next. 3. Creating a New Project Figure 3-1: Introductory window of the New Project Wizard 01 01
  • 7. Page 7 First thing we have to do is to specify the general project information. This is done by selecting the target microcontroller, it’s operating clock frequency, and of course - naming our project. This is an important step, because compiler will adjust the internal settings based on this information. Default configuration is already suggested to us at the begining. We will not change the microcontroller, and we will leave the default AT89S8253 as the choice for this project. Step 1 - Project Settings Figure 3-2: You can specify project name, path, device and clock in the first step
  • 8. Page 8 If you do not want to use the suggested path for storing your new project, you can change the destination folder. In order to do that, follow a simple procedure: Step 1 - Project Settings Figure 3-3: Change the destination folder using Browse For Folder dialog 01 01 02 03 03 02 Click the Browse button of the Project Settings window to open the Browse for Folder dialog. Select the desired folder to be the destination path for storing your new project files. Click the OK button to confirm your selection and apply the new path.
  • 9. Page 9 Once we have selected the destination project folder, let’s do the rest of the project settings: Step 1 - Project Settings Figure 3-4: Enter project name and change device clock speed if necessary 01 02 03 03 01 02 Enter the name of your project. Since we are going to blink some LEDs, it’s appropriate to call the project “LedBlinking” For this demonstration, we will use the default external crystal 10MHz clock. Clock speed depends on your target hardware. However you configure your hardware, make sure to specify the exact clock (Fosc) that the microcontroller is operating at. Click the OK button to proceed.
  • 10. Page 10 The memory model determines which default memory type will be used for function arguments, automatic variables, and declarations that include no explicit memory type. Since our project is very simple, we will choose the Small memory model. In this model, all variables, by default, reside in the internal data memory of the 8051 system. Variable access in this memory model is very efficient. Step 2 - Memory model Figure 3-5: Choose the memory model. “Small” is the best choice for our project. 02 01 Select Small memory model. Click Next. 01 02
  • 11. Page 11 This step allows you to include additional files that you need in your project: some headers or source files that you already wrote, and that you might need in further development. Since we are building a simple application, we won’t be adding any files at this moment. Step 3 - Add files 01 Figure 3-6: Add existing headers, sources or other files if necessary Click Next.01
  • 12. Page 12 Following step allows you to quickly set whether you want to include all libraries in your project, or not. Even if all libraries are included, they will not consume any memory unless they are explicitely used from within your code. The main advantage of including all libraries is that you will have over 250 functions available for use in your code right away, and visible from Code Assistant [CTRL+Space]. We will leave this in default configuration: Step 4 - Include Libraries 02 01 Figure 3-7: Include all libraries in the project, which is a default configuration. 01 02 Make sure to leave “Include All” selected. Click Next.
  • 13. Page 13 After all configuration is done, click “Finish” to complete the New Project wizard. You can still go back and change any settings if necessary. Step 4 - Finishing Figure 3-8: Finish the New project wizard, or go back and make some changes. 01 Click Finish.01
  • 14. Page 14 New project is finally created. A new source file called “LedBlinking.c” is created and it contains the void main() function, which will hold the program. You may notice that project is configured according to the settings done in the New Project Wizard. Blank new project created Figure 3-9: New blank project is created with your configuration
  • 15. Page 15 Time has come to do some coding. First thing we need to do is to put PORT0 LEDs into initial state. For example, let’s fill it with logic zeros on every pin: Finally, in a while() loop we will toggle the PORT0 value, and put a 1000 ms delay, so the blinking is not too fast. void main() { // Turn OFF LEDs on PORT0 P0 = 0; while(1) { // Toggle LEDs on PORT0 P0 = ~P0; // Delay 1000 ms Delay_ms(1000); } } // Turn OFF all LEDs on PORT0 P0 = 0; while(1) { // Toggle LEDs on PORT0 P0 = ~P0; // Delay 1000 ms Delay_ms(1000); } 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 LedBlinking.c - source code 4. Code Example Figure 4-1: Complete source code of the PORT0 LED blinking
  • 16. Page 16 Figure 4-2: This is how the code looks written in compiler code editor window
  • 17. Page 17 When we are done writing our first LedBlinking code, we can now build the project and create a .HEX file which can be loaded into our target microcontroller, so we can test the program on real hardware. “Building” includes compilation, linking and optimization which are done automatically. Build your code by clicking on the icon in the main toolbar, or simply go to Build menu and click Build [CTRL+F9]. Message window will report the details of the building process (Figure 5-1). Compiler automatically creates necessary output files. LedBlinking.hex (Figure 5-2) is among them. 5. Building the Source Figure 5-1: After the successful compilation and linking, the message window should look something like this Figure 5-2: Listing of project files after building is done
  • 18. Page 18 mikroC PRO for 8051 comes with over 90 examples which demonstrate a variety of features. They represent the best starting point when developing a new project. You will find projects written for mikroElektronika development boards, additional boards, internal MCU modules and other examples. This gives you a head start in development, and you don’t have to do it all from scratch. In most cases, you can combine different simple projects to create a more complex one. For example, if you want to build a date, time and temperature semaphore on 7-segment display, you can combine RTC and temperature sensor examples with Seven Segment Display example and do the job in much less time. All projects are delivered with a working .HEX files, so you don’t have to buy a compiler license in order to test them. You can load them into your development board right away without the need for building them. Figure 6-1: Project explorer window enables you to easily access provided examples and load them quickly 6. What’s next? If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http://www.mikroe.com/forum/ and browse through more than 200 thousand posts. You are likely to find just the right information for you. On the other hand, if you want to download more free projects and libraries, or share your own code, please visit the Libstock website http://www.libstock.com/. With user profiles, you can get to know other programmers, and subscribe to receive notifications on their code. Community More examples
  • 19. Page 19 DISCLAIMER All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution. Any modification of this manual is prohibited. MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose. MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall MikroElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary. TRADEMARKS The MikroElektronika name and logo, the MikroElektronika logo, mikroC™ , mikroBasic™ , mikroPascal™ , mikroProg™ , Easy8051™ , mikroBUS™ , Click Boards™ , and mikromedia™ are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies. All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners’ benefit, with no intent to infringe. Copyright © MikroElektronika, 2013, All Rights Reserved. HIGH RISK ACTIVITIES The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazard- ous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, direct life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.
  • 20. If you want to learn more about our products, please visit our website at www.mikroe.com. If you are experiencing some problems with any of our products or just need additional information, please place your ticket at www.mikroe.com/support/ If you have any questions, comments or business proposals, do not hesitate to contact us at office@mikroe.com Creating the first project in mikroC for 8051 ver. 1.00 Designed by MikroElektronika, June 2013.