Hello,
I need to setup two processes - where one shall be run as fast as possible, and the second
shall be done any 100 - 200ms (for instance).
The first one, shall also "interrupt" the slower one ..or saying in other words - the first one shall always be able to
run every x µs ...while the slower one can take a longer time.
In a first step I thought about using the parallel procedure - but in detail they are taking each 20ms and they
are in reality sequently.
2nd idea is - to setup the first process as an interrupt routine - and the 2nd process as an usual program.
But how can I trigger the first routine - if I wouldn't spent another inputpin and an oscillator?
Is there an internal value available, which can be used of a 14M2 or 20M2.
OR - is it possible to trigger an interrupt by an ADC-value ?
so far I understood - this is only with "digital High/low" feasable ?
So - It would be kind if anybody can help me.
Thanks in advance
albatros
Story behind:
The first process shall read values from ADC, calculate it, and control a PWM. So only some line of codes.
The 2nd process is to read UserInputs by Buttons, deliver informations on LCD...
I need to setup two processes - where one shall be run as fast as possible, and the second
shall be done any 100 - 200ms (for instance).
The first one, shall also "interrupt" the slower one ..or saying in other words - the first one shall always be able to
run every x µs ...while the slower one can take a longer time.
In a first step I thought about using the parallel procedure - but in detail they are taking each 20ms and they
are in reality sequently.
2nd idea is - to setup the first process as an interrupt routine - and the 2nd process as an usual program.
But how can I trigger the first routine - if I wouldn't spent another inputpin and an oscillator?
Is there an internal value available, which can be used of a 14M2 or 20M2.
OR - is it possible to trigger an interrupt by an ADC-value ?
so far I understood - this is only with "digital High/low" feasable ?
So - It would be kind if anybody can help me.
Thanks in advance
albatros
Story behind:
The first process shall read values from ADC, calculate it, and control a PWM. So only some line of codes.
The 2nd process is to read UserInputs by Buttons, deliver informations on LCD...