LED Blinking 8051
no vote
In the above circuit diagram, AT89C52 is used to simulate the LED
blinking code. You can place AT89C51 here without any other change and
the code will still run the same. So, this example code can work on both
AT89C51 and AT89C52 micro-controllers.
A crystal of 11.0592 MHz is used here. You can use any crystal value
from 3 to 24MHz with 8051. As we know that 8051 micro controller has an
architecture which executes an instruction in 12 CPU cycles ,
hence this 11.0592Mhz crystal makes this 8051 run at 0.92 MIPS
(Million of instructions per second). The code for this project is shown
below.