Hi all, i am useing a buzzer, a LED and a seven segment togather in a program...
And i want them to work togather but they are not due to nested for loops...
How do i solve this problem???
Thanks
mohideen,
Sounds like you need to break down the program into tasks. One task to handle each of the items, buzzer, LED and seven seg.
Then make main a loop that will service the tasks. I make lots of assumptions, like you are using a timer and interrupts. The interrupts can set flags that the main loop is sensitive to. An interrupt handler can set the flags.