This project shows the application of 8051 as a counter that is designed to count upto 255. To simulate circuit in this project, initially activate Mixed Mode simulator from the Schematic Editor window. Simulation can be performed by selecting Run Transient analysis (Oscillograph) from Simulation menu. For increasing the speed of the counter, stop simulation inside Oscillograph. Simulation is activated again after giving step = 50us and observe the speed of counting.
The circuit uses an 8051 chip, three 7-Segment Displays and three BCD to Seven Segment Decoders. In this circuit, Port P0 of 8051 is assigned as the input port while the ports P1 and P2 are assigned as output ports. The counter counts from a hex value initially given to port P0 of 8051. Currently it is set as "LLLLLLLL". This hex value can be edited by choosing Tools menu -> Instruments -> Preset Logic State -> HIGH/ LOW state. The BCD to Seven-Segment Decoder decodes the data from ports P1 and P2 to 7-segment format, which are displayed in