Monday, September 21, 2015

Programming languages used in 89C51 Microcontroller



Programming languages used in 89C51 Microcontroller  :

The 89C51 Microcontroller programmed in three programming languages .

1 : Assembly Language 

First any very basic and old language is Assembly language , this is language for beginners Assembly language is referred to as a Low level language  . This language deals Directly with the internal structure of the CPU due to this the Assembly language provides totally control to user .Assembly language is not fully understandable (mean we do not add the human understandable words in Assembly codes just like in C language),  due to this we face problems when we write a big program(code) .As we know that the RAM of 89C51 Microcontroller is 128 Bytes and 4K byte code space , due to this we need small size codes ( programs ) . By using Assembly language we can make small size codes and this is the main advantage of Assembly language.

2 : C language 

2nd and , today most important and my best language is C language . This language provides very easy platform to user , to write bigger and professional codes(programs) . In C language we can use Human understandable words due to this it is easy language for writing difficult codes .We can not control all parts (Registers , Memory addresses etc etc ..)  of Microcontroller though C language coding , but we can perform all tasks by using this language .One and only disadvantage of c language is that , it gives large code size .
In case of 89C51 Microcontroller we must write code lower than 4K byte , but its ok i teach you how to reduce the size of coding .

3 : C++ language 

3rd and most popular language is C++ language it is a higher level language . C++ is very easy language for writing professional codes . It is very advanced language so we can add libraries to our code . Codes size is larger this language .    


  



The above figure shows the advantage and disadvantages of basic three programming languages .


Related Posts :

                      What Is Microcontroller 
                      What Is 89C51 Microcontroller 
                                   89C51 Programming Software Keil U Version 4



0 comments:

Post a Comment