This 8051project shows the timer operation for 500 microseconds using Timer0. 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.
In this circuit, Port P1 is set as the output port. An internal timer counts from the specified value to FFFF during the 500-microsecond time. A series of pulses will appear at P1 to indicate the duration of timer operation.