My project is based on traffic lights control system. i use 4 infrared sensors as input and 12 leds (4 lanes) 4 red, 4 yellow and 4 green leds as outputs.
My questions is
1. Can i write the code in both embedded c and few interrupts in assemply language programming??
2.i want to giv a special condition like-
if 3 vehicles are sensed then green light should glow for 5 seconds, if 6 vehicles are sensed then green light should glow for 10 seconds and so on.. how can i give this condition?? please help me with the coding..