
New start screen deliveres just the right information. Examples, news and useful links are here to get you started quickly.

We’ve created a special tool to help you create interrupt routines. You will have a working interrupt in no time.

We’ve managed to speed up compilation even further. Your code is now compiled 40% faster than in compiler version 5.40.

With ICS (interrupt context saving) control added, you have the power of fine-tuning your time-critical applications.

Most compilers demonstrate you how to build LED Blinking as your first project. We have decided to show you something else. Let’s implement together a simple UART communication in a little over 15 lines of code.
UART is short for Universal Asyncrhronous Receiver Transmitter. It is a widely used popular time-based communication serial protocol. It’s been around since 1971 and and is supported in almost all AVR microcontrollers. Until recently, every PC was equipped with at least one UART controller. DB9 connectors and RS232 cables were and still are present in many devices. In the last couple of years, RS-232 cables and connectors are succeeded with USB-UART technology, where communication is done via USB cable and a dedicated virtual COM port.
program UART
dim uart_rd as byte
main:
UART1_Init(9600) ' Initialize UART module at 9600 bps
Delay_ms(100) ' Wait for UART module to stabilize
UART1_Write_Text("Ready")
UART1_Write(13) ' Line Feed
UART1_Write(10) ' Carriage Return
while TRUE ' Endless loop
if (UART1_Data_Ready() <> 0) then ' If data is received,
uart_rd = UART1_Read() ' Read the received data,
UART1_Write(uart_rd) ' And send data via UART
end if
wend
end.
Let us show you how easily mikroBasic PRO for AVR handles with rather complex programs using the power of integrated libaries.
The following AVR Basic compiler code sample is a simple loop that demonstrates the operation of UART library. After baudrate initialization, it constantly checks for new incomming data. As soon as the byte arrives, it is transmitted back with the same content.
Examine these lines to see how the UART library encapsulates everything in a simple and easy-to-understand functions.
All credit card and personal details are kept secure, and our customer list is not disclosed to any third party. Most shipments are sent within 48 hours of your order. 2Checkout.com is an authorized reseller of goods and services provided by mikroElektronika.
If you have purchased any related development system from us directly you are entitled to a discount price of the compiler. This doesn't apply to purchases made through our distributors.
We deliver our products to all countries in the world using following shipping options:
DHL Express: $25.00 USD for up to 5 Kgs, usually arrives in 2-4 business days.*
Post Office: $25.00 USD, no weight limit, usually arrives in 7-12 business days.
* - Please contact your local DHL office about delivery service and possible additional charges.