8051 programming Concept is useful to start the programming of the Embedded systems. If you are learner and want to start the learn about the embedded system programming concept with 8051 micro controller then these programs are very helpful to understand the basic program writing in Embedded C as well as build the concept of embedded programming  in keil IDE compiler platform. First of all here we see basic structure of program so we can better understand the 8051 programming concept.

Header file

#include<reg51.h>

Main function

void main () {

Logic to run program infinite times

while (1)
{
Statement(s)
 }
}
Programming Concept 1 : – Write a embedded C program to show  hexadecimal value 55 on port 2.
#include<reg51.h>
void main()
{
P2=0x55;
}
Note: – To see the effect of program run it on simulator in single step and check the value at each step