5
8051Flash
MikroElektronika
page
Write a code in one of 8051 compilers and generate
a .hex file;
In the
8051Flash
program’s main window select
the microcontroller and load the hex code into the
programmer’s buffer;
Click the
Write
button to program the microcontroller.
2
1
3
On the right side of the
8051Flash
program’s window there
are several options which make the programming process
easier, whereas, on the left side of the window there are a
number of options for microcontroller settings. Positioned
in the bottom right corner of the window, the
Progress
bar
enables you to monitor the programming process.
1
Compiling
program
Loading hex code
2
3
2.0. Programming Microcontrollers
The process of programming microcontrollers starts by writing a program in one of 8051 compilers (
mikroC PRO for 8051
,
mikroBASIC PRO for 8051, mikroPASCAL PRO for 8051
etc.). When the program is correctly written, it should be compiled into
a format that can be loaded into the microcontroller. The program to be loaded into the microcontroller has the
.hex
extension. As
soon as the .hex file is generated, the program can be loaded into the microcontroller.