2camjohn
Member
So far I have been coding a control program and have found it quite straightforward.
I am encountering problems while trying to make my chip do several things at once.
At a certain point in the program I want to set an output pin high for a short time, aswell as another pin high for a longer time. This loop may be executed again while the second pin is high, keeping it high.
This kind of thing would be easy to do in java or similar by sending two programing threads off doing the two different methods. I realise that is a high level concept and the only way I can think of reproducing that on a PIC would be using complex timing and checks, which I want to aviod to keep the performance.
Is there anything built into pics (16f877) to help me achieve this? Any good tutotials on this kind of thing?
Thanks
I am encountering problems while trying to make my chip do several things at once.
At a certain point in the program I want to set an output pin high for a short time, aswell as another pin high for a longer time. This loop may be executed again while the second pin is high, keeping it high.
This kind of thing would be easy to do in java or similar by sending two programing threads off doing the two different methods. I realise that is a high level concept and the only way I can think of reproducing that on a PIC would be using complex timing and checks, which I want to aviod to keep the performance.
Is there anything built into pics (16f877) to help me achieve this? Any good tutotials on this kind of thing?
Thanks