hello there... Im trying to make a traffic light system that has a 2 digit seconds display for each lane. Im using PIC16F88 and a display driver 7219. The issue is that the system senses the traffic through LC sensor circuits and decides which lane has the most density at the beginning of the cycle and gives appropriate green time to the lanes. I need the display for a lane to show the seconds to the next green time(when the lane is red) and the seconds to the red light (when light is green). Any ideas or thoughts regarding the algorithm of the program, cos I can't seem to think of any option that covers all this. The system checks the density only at the beginning of a complete cycle.