Interrupt / ADC / Voltage
Posted: Sun Oct 13, 2013 3:26 pm
Hello,
I am Michel in the North of France.
Can you help me?
I allow requesting you for a problem Flowcode, more particularly: the interruptions.
In Flowcode as attachment, the interruption is activated by an outside sensor ( a switch).
What I wish to make and which raises me problem, I would like to replace this switch by one potentiometer.
I have the chain of the operations, but I do not know how to make, but:
1) Is this possible to activate an interruption by a tension treated in the pic with the ADC Macro?
2) What pic to choose ( 12Fxxx, 16Fxxx or 18Fxxx) ?
Then:
- I attribute an entry of Analog conversion and I affect a variable; U_Var
- I attribute a reference size; U_Seuil
- I compare U_Var and U_Seuil
- According to the result of this comparison, I continue in the main program or I parts in the program of interruption.
Thank you.
Regards
Michel
I am Michel in the North of France.
Can you help me?
I allow requesting you for a problem Flowcode, more particularly: the interruptions.
In Flowcode as attachment, the interruption is activated by an outside sensor ( a switch).
What I wish to make and which raises me problem, I would like to replace this switch by one potentiometer.
I have the chain of the operations, but I do not know how to make, but:
1) Is this possible to activate an interruption by a tension treated in the pic with the ADC Macro?
2) What pic to choose ( 12Fxxx, 16Fxxx or 18Fxxx) ?
Then:
- I attribute an entry of Analog conversion and I affect a variable; U_Var
- I attribute a reference size; U_Seuil
- I compare U_Var and U_Seuil
- According to the result of this comparison, I continue in the main program or I parts in the program of interruption.
Thank you.
Regards
Michel