Microcontroller › 8051 › Problem with 7 segment common Cathode display using C8051F350 Micro Controller › Hi Nallapaneni,It is obvious
It is obvious that your delay () function is causing trouble. For this particular project precise delay don’t have that much significance.
Just create a delay using loop waiting technique.
void delay_us ( int us )
volatile int uss;
uss = us;
for ( ; uss; uss — ); //assume 1 microsecond for each loop