mikroBasic PRO for 8051 Main Banner

mikroBasic PRO for 8051

mikroBasic PRO for 8051 is a full-featured BASIC compiler for 8051 microcontrollers from Atmel and Silicon Labs. It is designed for developing, building and debugging 8051-based embedded applications. This development environment has a wide range of features such as easy-to-learn BASIC syntax, easy-to-use IDE, very compact and efficient code, many hardware and software libraries, comprehensive documentation, software simulator and many more. Numerous ready-to-use examples will give you a good start for your embedded projects.

  • Free updates of new compiler versions.
  • Free lifetime product technical support.
  • Over 180 Silicon Labs and Atmel 8051 microcontrollers supported.
  • Wide range of hardware and software libraries.
  • Numerous ready-to-use practical examples.
  • User-friendly IDE with additional tools.
  • Easy-to-understand documentation.
  • Easy-to-learn BASIC syntax.

Download

Installation

Download Now Download mikroBasic PRO for 8051 [11.72MB]
(current build v2.20)

Documentation

Release Changes overview in v2.20

  • Additional chips supported
  • Support for Silicon labs 8-bit mixed-signal MCUs
  • Added New examples for both SiLabs and ATMEL MCUs
  • SFR paging support added to linker
  • mlk files improved (XML file type)
  • sbit and bit vaiables allocation allowed in all data spaces (bdata, data, idata, pdata, xdata)
  • Multipass allocation of functions
  • Compress calls optimization added to Linker
  • Compress jumps optimization added to Linker
  • Libraries added: SMBus, TWI, PrintOut
  • X2 option added (ATMEL family)
  • Active comments added to editor (web links as active sections in comments)
  • Web links node added to code explorer
  • Advanced EEPROM editor tool
  • Alternative HTML statistics preview
  • Quick convertor added and improved
  • Shortcut CTRL+ALT+M - Open MLK file
  • Shortcut CTRL+ALT+D - Open DEF file
  • Sorting Procedures List by name and by line number
  • Drag and drop files to Project Manager
  • SFR Paging added to simulator RAM View
  • XRAM added to simulator RAM View

See the complete version history of mikroBasic PRO for 8051

Compiler Overview

mikroBasic PRO for 8051 offers a user-friendly interface designed to get you going fast with your 8051 microcontrollers. Modern and user-oriented compiler's IDE will show you that microcontroller projects can be developed in an easy and fast way. The compiler comes with numerous libraries that are completely documented and supplied with practical examples. There is also a set of tools used for collecting project information such as statistics as well as various tools for application testing.

Library Routines with Examples

mikroBasic PRO for 8051 2009 includes a set of libraries and examples intended to facilitate application development. All that allows a quick start in programming microcontrollers. Browse through the supplied examples and learn how to utilize 8051 MCUs with minimum code and effort.

Hardware 8051-specific Libraries

  • ADC Library
  • CANSPI Library
  • EEPROM Library
  • Graphic LCD Library
  • Keypad Library
  • Lcd Library
  • Manchester Code Library
  • OneWire Library
  • Port Expander Library
  • PS/2 Library
  • RS-485 Library
  • SMBus Library
  • Software I²C Library
  • Software SPI Library
  • Software UART Library
  • Sound Library
  • SPI Library
  • SPI Ethernet Library
  • SPI Graphic Lcd Library
  • SPI Lcd Library
  • SPI Lcd8 Library
  • SPI T6963C Graphic Lcd Library
  • T6963C Graphic Lcd Library
  • TWI Library
  • UART Library

Miscellaneous Libraries

  • Button Library
  • Conversions Library
  • C Type Library
  • Math Library
  • String Library
  • Time Library
  • Trigonometry Library
  • Built-in Routines

My First Program in mikroBasic PRO for 8051 2009

The following code sample includes a simple introductory project. It turns on/off diodes connected to PORT0, PORT1, PORT2 and PORT3. The compiler spares you from consulting the manual for specific MCU, code adjustments for different 8051 models, and address arithmetic.

program LED_Blinking

main:
while TRUE
P0 = 0x00 ' Turn ON diodes on PORT0
P1 = 0x00 ' Turn ON diodes on PORT1
P2 = 0x00 ' Turn ON diodes on PORT2
P3 = 0x00 ' Turn ON diodes on PORT3

Delay_ms(1000) ' 1 second delay

P0 = 0xFF ' Turn OFF diodes on PORT0
P1 = 0xFF ' Turn OFF diodes on PORT1
P2 = 0xFF ' Turn OFF diodes on PORT2
P3 = 0xFF ' Turn OFF diodes on PORT3
Delay_ms(1000) ' 1 second delay
wend ' Endless loop
end.

Technical Specification

Supported Microcontrollers

The compiler supports a wide range of microcontrollers including over 180 8051 microcontrollers. Newly released 8051 microcontrollers will be supported by a new version of compiler software that is updated regularly. Here is a list of microcontrollers supported by the mikroBasic PRO for 8051 compiler:

Atmel 8051 Microcontroller Family
AT80C5112 AT80C51SND1C AT83C5111 AT83C5112 AT83SND1C AT87C5111 AT87C5112 AT89C2051
AT89C4051 AT89C51 AT89C5131 AT89C5132 AT89C51CC03 AT89C51ED2 AT89C51IC2 AT89C51ID2
AT89C51RB2 AT89C51RC AT89C51RC2 AT89C51RD2 AT89C51SND1C AT89C52 AT89C55WD AT89LP2052
AT89LP213 AT89LP214 AT89LP216 AT89LP4052 AT89LP428 AT89LP828 AT89LS51 AT89LS52
AT89LS53 AT89LS8252 AT89LV51 AT89LV52 AT89LV55 AT89S2051 AT89S4051 AT89S51
AT89S52 AT89S52E AT89S53 AT89S8252 AT89S8253
Silicon Labs 8051 Microcontroller Family
C8051F000 C8051F001 C8051F002 C8051F005 C8051F006 C8051F007 C8051F010 C8051F011
C8051F012 C8051F015 C8051F016 C8051F017 C8051F018 C8051F019 C8051F020 C8051F021
C8051F022 C8051F023 C8051F040 C8051F041 C8051F042 C8051F043 C8051F044 C8051F045
C8051F046 C8051F047 C8051F060 C8051F061 C8051F062 C8051F063 C8051F064 C8051F065
C8051F066 C8051F067 C8051F120 C8051F121 C8051F122 C8051F123 C8051F124 C8051F125
C8051F126 C8051F127 C8051F130 C8051F131 C8051F132 C8051F133 C8051F206 C8051F220
C8051F221 C8051F226 C8051F230 C8051F231 C8051F236 C8051F300 C8051F301 C8051F302
C8051F303 C8051F304 C8051F305 C8051F310 C8051F311 C8051F312 C8051F313 C8051F314
C8051F315 C8051F316 C8051F317 C8051F320 C8051F321 C8051F326 C8051F327 C8051F330
C8051F331 C8051F332 C8051F333 C8051F334 C8051F335 C8051F340 C8051F341 C8051F342
C8051F343 C8051F344 C8051F345 C8051F346 C8051F347 C8051F350 C8051F351 C8051F352
C8051F353 C8051F360 C8051F361 C8051F362 C8051F363 C8051F364 C8051F365 C8051F366
C8051F367 C8051F368 C8051F369 C8051F410 C8051F411 C8051F412 C8051F413 C8051F520A
C8051F521A C8051F523A C8051F524A C8051F526A C8051F527A C8051F530A C8051F531A C8051F533A
C8051F534A C8051F536A C8051F537A C8051F920 C8051F921 C8051F930 C8051F931 C8051T600
C8051T601 C8051T602 C8051T603 C8051T604 C8051T605 C8051T610 C8051T611 C8051T612
C8051T613 C8051T614 C8051T615 C8051T616 C8051T617 T83C5101 T83C5102 T87C5101
T89C5115 T89C51AC2 T89C51CC01 T89C51CC02

Technical Details

  • Host Platforms:
    Windows® 98/2000/NT/XP/2003/Vista/7
  • Language Support:
    Assembly, BASIC (standard BASIC syntax; labels; procedures and functions; units; standard data types; global and local variables; procedure/function parameters)
  • Output Formats:
    Intel Hex, Assembly, Binary
  • Supported Microcontrollers:
    Silicon Labs and Atmel 8051 microcontroller families
  • System Requirements:
    200 MHz Intel® Pentium® or AMD K-6® class processor or higher, Microsoft Windows® 98/2000/NT/XP/7
    64 MB RAM
    CD-ROM drive for installation

IDE - Integrated Development Environment

The compiler's IDE is designed to maximize programmers' productivity by providing a set of software components in the form of a single program in which all development can be done. These software components eliminate the need for installation of additional software.

IDE Features

Code Editor
Code Editor

Code Editor is a text editor used for editing source code. It features Code Assistant, Parameter Assistant, Auto Correct, Code Templates, Syntax Highlighting, etc. It is designed to satisfy the needs of both novices and experienced programmers. Due to this editor, you can easily develop your applications.

Project Manager
Project Manager

The compiler's IDE consists of an intuitive Project Manager which aims to provide a simple, but very usable development environment for all programmers' needs. The Project Manager enables you to manage multiple projects and organize your source codes easily.

Code Explorer
Code Explorer

Code Explorer enables you to list variables, functions and other program items for any file of your project. You just need to click on an element and the main window will be positioned to its definition line. This feature is very useful for finding elements in long files as it lists all project elements in one place.

Library Manager
Library Manager

Library Manager helps you manage different types of libraries being used in the project. You can add a desired library to the project by checking the box next to the library name.

Routine List
Routine List

Routine List displays a list of routines and enables them to be filtered by name. This feature allows you to search and find routines easily by double clicking desired routine. This tool also saves your time by simplifying routine search especially in long source codes.

Project Settings
Project Settings

Project Settings allows you to set up your project quickly. You just have to enter data that is relevant to your project such as 8051 microcontroller selection, MCU Clock frequency and Memory Model Selection.

Bookmarks
Bookmarks

Bookmarks is a feature that allows you to add a bookmark to a code line in the project. Instead of navigating manually between files and through the code, you can use this feature to jump directly to the desired location. You can create as many bookmarks as you want throughout your projects and quickly navigate between them.

Macros
Macros

Macros allow you to save your actions and reuse them later in your projects. This option enables you to create very complex macros which can save hours and hours of your work. Macros allow you to record the sequence of keystrokes and locators used to perform a task and reuse them later when and if required.

Messages
Messages

Messages window displays status messages for various features in the integrated development environment (IDE). It shows how the program compilation is performed as well as various responses to the project compilation and linking. It allows you to easily track down compilation errors in your project source code.

Software Simulator

The compiler includes an excellent source-level debugger that helps you troubleshoot and repair your application faster. You can debug your project with a software simulator that simulates microcontroller's operation in the compiler's IDE.

Watch Window
Watch Window

Watch Values window may be used to inspect and edit any expression, including global variables, static variables, local variables, function arguments and registers. It allows you to inspect the program and discover bugs immediately while the program is running, thus saving a lot of development time.

It is also possible to modify program items in order to test various Run-Time situations.

Breakpoints
Breakpoints

Breakpoints are temporary markers you can place in your program code to instruct the debugger where to stop the program. With breakpoints you can easily reach the part of code that is critical for debugging and testing. You just need to set a breakpoint and your project is ready for debugging.

Stopwatch
Stopwatch

Stopwatch is a debugger feature used to display a current count of cycles/time since the last debugger action occurred. Stopwatch measures the execution time (number of cycles) from the moment debugger has started and can be reset at any time.

This tool is ideal for calculating the time required for executing any part of the code. In other words, you can easily track how long it takes for each part of the code to be executed, which helps you perform the rest of application efficiently.

Statistics

The compiler's IDE features Statistics window which shows a complete statistics for your project such as RAM Memory Usage, Used RAM Locations, SFR Locations, ROM Memory Usage, ROM Memory Constants, Functions Sorted By Name, Functions Sorted By Name Chart, Functions Sorted By Size Chart, Functions Sorted By Name, Functions Tree and Memory Summary.

Statistics Screenshots

Implemented Tools

mikroBasic for PRO for 8051 includes a lot of useful implemented tools that help you develop your applications more quickly and comfortably. These tools are designed on the basis of users' needs and practical experience in developing embedded applications.

ASCII Chart
ASCII Chart

ASCII Chart is a handy tool, particularly useful when working with LCD display.

USART Terminal
USART Terminal

USART Terminal is a tool for RS232 communication - baud rate control, RTS and DTR commands.

EEPROM Editor Tool
EEPROM Editor Tool

EEPROM Editor Tool allows you to easily manage EEPROM of 8051 microcontrollers.

UDP Communication Terminal
UDP Communication Terminal

UDP Communication Terminal is a tool for Ethernet UDP communication used to send UDP packets to a specified IP address, specified port, etc.

GLCD Bitmap Generator Tool
GLCD Bitmap Generator Tool

Graphic LCD Bitmap Generator Tool is used for converting bitmap to mikroBasic compatible code.

7 Segment Display Decoder
7 Segment Display Decoder

7 Segment Display Decoder is a convenient visual panel which returns decimal/hex value for 7seg Display.

LCD Custom Character
LCD Custom Character

mikroBasic PRO for 8051 2009 includes LCD Custom Character. Output is mikroBasic PRO for 8051 2009 compatible code.

Screenshots

 

Ordering Information

Ordering of our products is done via 2Checkout payment gateway. If you have any problems with CC processing or you want to pay directly to our bank account please inform us:

2Checkout.com is an authorized reseller of goods and services provided by mikroElektronika

All credit card and personal details are kept secure, and our customer list is not disclosed to any third party, so you never have to worry about your credit card safety. Most shipments are sent within 48 hours of your order. Online purchasing experience of mikroElektronika products is fast, simple and secure. 2Checkout.com is an authorized reseller of goods and services provided by mikroElektronika.

  • Buy Now $249.00 USD mikroBasic PRO for 8051

Discount 20 %

Buy mikroBasic with one of our 8051 development boards at 20% discount on compiler price! All of our previous customers are entitled to the discount!

  • Buy Now $199.00 USD mikroBasic PRO for 8051 with discount