Tutorial Microcontroller 8051
 
 
 
 
 
   

 

M-IDE Studio for MCS-51

Download Free Software

The M-IDE Studio for MCS-51 is the primary means for performing compiling for the MCS-51 devices. The M-IDE Studio for MCS-51 has a comprehensive set of features that allows you to edit, compiling, and debugging file.

The M-IDE Studio for MCS-51 also allows you to write a programming language with c programming. Using the software, you can see the error by viewing report in file LST.

Microcontroller M-IDE Studio Software

Figure 1 - M-IDE Studio for MCS-51

You will notice that most of the toolbar buttons and menu options are disabled. This is because a file has not been made. To make a file, do the following:

1. New File

To make a new file, click on File menu or shortcut as shown in figure 1, after made a new file, then you'll see the page look similar as figure 2.


Microcontroller M-IDE Studio Software

Figure 2. A Blank New File

2. Writing a Program

To implementation the program, you may write the assembly program in blank file. After writes the program, see that is no colour in the page.In this case you must save the program as shown in figure 3.

Microcontroller M-IDE Studio Software

Figure 2. Writing a Program

3. Save As

Save your file with extension according to your program, in this case if your program is assemly then you must save the file with extension *.ASM, as shown in figure 3.

Microcontroller M-IDE Studio Software

Figure 3. Save as dialog

After saving the program you will see the program with colour, this indicates that the mnemonic is right reseved, as shown in figure 4

Microcontroller M-IDE Studio Software

Figure 4. Mnemonic instruction

4. Compiling

To load the file into your device, you need to comile the file *.ASM tobe HEX file. To compiling file *.ASM into *.HEX you can click shortcut as shown in figure 4.

5. Troubleshooting Error

Assembly errors apply to the consistency of the assembly language program in syntax and semantics. If one of these errors is detected, it is flagged in the list file, and program execution continues.

Microcontroller M-IDE Studio Software

Figure 5. No massage error

6. File error example

As you see in figure 6, we have an error instruction, with S JMP that should be SJMP. Before you can detect the error you must save the file and compile the file again.

Microcontroller M-IDE Studio Software

Figure 6. File with error

Microcontroller M-IDE Studio Software

Figure 7. Error massage output

7. LST File

If you like to see more detail about the error, in a file you should see the *.LST file as you see in dialog box below.

Microcontroller M-IDE Studio Software

Figure 8. Open LST file dialog

 

Microcontroller M-IDE Studio Software

Figure 9. LST file

Best Link

 

 

 

 

Lesson 1:
T o o l
1.1. Programmer
1.2.
Edsim 51
1.3. MIDE-51
1.4. ATMEL ISP

Lesson 2:
Input Output
2.1.LED
2.2.Swicht
2.3.7 Segmen
2.4.LCD Character
2.5.ADC
2.6.DAC
2.7.Motor Stepper
2.8.Keypad

Lesson 3:

Timer Counter

3.1.Basic
3.2.Mode 0
3.3.Mode 1
3.4.Mode 2
3.5.Mode 3

Lesson 4:

Serial Comm.

4.1.Basic
4.2.LED
4.3.Rotate LED
4.2 ADC
4.3.LCD

Lesson 5:
Interuption

5.1.Basic
5.2.Timer
5.2.External