Circuit Diagram:



Program:
#include<reg51.h> // Header file required for 8051 controller,
sbit led=P1^0; //variable assign to P1.0
void main()  //main loop
{
led=1; //Initially oFF because we connected led in current sinking type.
while(1) //Infinite Loop
{
led=0; //Led ON
}
}

Note:

To Write program I used "uVision4" software and selected the controller "NXP P89V51RB2"

For Simulation I used Proteus Software.