How to handle in software to solve this block diagram?
I have a block diagram as follow. Please help me to solve it.
My problem is: I have 2 buffers and they are filled with data consecutively. After one buffer is fulled, the data will be passed and processed in Operation and Work while the other buffer is being filled. It takes 5ms to finish filling each buffer. There may be one Work runs at a time or N Works run at once. Make sure Work and Operation finish the N loop before doing Memory.
N | |
I don't know how to handle this problem in C. Any of you may have any solution or suggestion, please tell me. I really appreciate!
CODE TAGS added by Hammer