The inputs LT and RBI should be held high and the refresh rate must be at least 120Hz since you have 4 display. Wouldn't it be easier to program it in C?
LT and RBI must be held high to be able to output 0 to 9.
About the refresh rate, since you have 6 independent display the refresh frequency of each display must be at least 30Hz. If you go lower than 30Hz you will see flickering.
Dear Pretest,
Thank you very much for reply
I need algorithm for above program, I mean while using same port for BCD data and shift register as per my picture
Here something that could possibly do what you want. I give you pseudo code only.
Read RTC and put the result in a variable.
Select the right display by sending a 0 to your display.
Isolate the value you want to send. Put it on PD0-PD4. Toggle high then low the STB pin of the Mux to latch the enable of your display.