This 8051 project is used to find the biggest number from a set of numbers stored in external memory. 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.
The circuit contains an 8051 chip, 128K x 8-Bit CMOS One Time PROM, Buffer Register, Binary to 7- Segment Decoder and 7-Segment LED Display. In this circuit Port P1 of 8051 is used as the output port while the ports P0 and P2 are used for memory addressing.
The address of the memory location is send to the memory via latch from the address lines of 8051. The content of this location is loaded to accumulator and is compared with the register, which is assigned to store the biggest value. The number of memory locations to be compared is specified in the code. For each comparison, the data pointer is incremented so as to point to the next memory location. The biggest number obtained after all the comparisons will be available in the register and this value is copied to port P1. The value at Port P1 is send to the Binary to 7- Segment Decoders and the result is displayed in