Djsarkar
Member level 3
Hi
I am looking advice on project design.
Let's assume we have PIC12F1840, Sensor X and Output device Y.
Task 1 ,When sensor detects object, micro read the output of sensor and finish first job
Task 2, Turn on device Y
Response time of X is 60 ms
Response time of Y is 30 ms
When I started to solve the problems on paper. I have two solutions in my head
I would prefer interrupt method because it's faster then first method.
What's you recommend? What's better and why it would better?
It's just basic question I am not implementing , only purposes to identify the efficient process.
I am looking advice on project design.
Let's assume we have PIC12F1840, Sensor X and Output device Y.
Task 1 ,When sensor detects object, micro read the output of sensor and finish first job
Task 2, Turn on device Y
Response time of X is 60 ms
Response time of Y is 30 ms
When I started to solve the problems on paper. I have two solutions in my head
I would prefer interrupt method because it's faster then first method.
What's you recommend? What's better and why it would better?
It's just basic question I am not implementing , only purposes to identify the efficient process.
Last edited by a moderator: