8051 Microcontroller - All Details Regarding Programming in Assembly & C Programming i will update here.
Download Instruction Set For Programming
You can compile program and check whether program is working with available hardwares in mobile.
Download 8051 simulator(Android )
Simulator Video
8051 LED Blink Program
LED Blink Using Registers
LED Blink Using Timer
#include <LiquidCrystal.h>
const char *msg="Hello World !";
const int rs = 2, en = 3, d4 = 4, d5 = 5, d6 = 6, d7 = 7;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup() {
pinMode(8,OUTPUT);
lcd.begin(16, 2);
lcd.print(msg);
for(int bytedata=0;bytedata<strlen(msg);bytedata++)
{
char txbyte=msg[bytedata];
lcd.setCursor(0,1);//clr for sec
lcd.print(" ");
for(int bitdata=0;bitdata<8;bitdata++)
{
bool txbit=txbyte &(0x80>>bitdata);
digitalWrite(8,txbit);
lcd.setCursor(bitdata,1);
lcd.print(txbit ? "1" : "0");
delay(40);
// lcd.clear();
}
}
}
void loop()
{
}