April 2020
Intermediate to advanced
412 pages
9h 58m
English
For our sample applications, we are going to use an emulator for the 8051 microcontroller. Several of them are available; however, we will be using MCU8051IDE since it's readily available in the Ubuntu repository.
We install it as a regular Ubuntu package, as follows:
# apt install -y mcu8051ide
This is a GUI IDE and requires an X Window system to run. If you use Linux or Windows as your working environment, consider installing and running it directly from https://sourceforge.net/projects/mcu8051ide/files/.
The simple program we created defines a global variable called Counter, as shown here:
volatile int Counter = 0;
This is defined as volatile, indicating that it can be changed externally and that a compiler shouldn't try ...