I need help with a little code if you can help me.
First I'm sorry for my bad english. I try read in forum but I can't understand nothing. I'm verry n00b in pic programming and in English .
So, I need next aplication (electronic switch) :
I have 1 input (I1) and 4 (O1, O2, O3, O4) outputs.
At input port is 3.3V all time and when push on reset button input is in "0".
I want next:
First situation: If I press reset less 0.5s outputs must be: O1= GND, O2=5V, O3=0 (not GND), O4=0; (if press time is 0.3 for ex. the outputs must be executed)
Second situation: If I press more or equal like 0.5s outputs must be: O1= 0 (not GND), O2=0, O3=GND, O4=5V; (when press time = 0.5s the ouptuts must be executed)
I think 12C508 or 509 is good for what I need but I'm not sure . I have and 5V for Vdd.
I have mikroBasic software. So, if code is for mikroBasic is verry good. I compile them after I have the code. But isn't bad and if is write in asm.
I hope my explication is good
Thanks, thanks, th.........
First I'm sorry for my bad english. I try read in forum but I can't understand nothing. I'm verry n00b in pic programming and in English .
So, I need next aplication (electronic switch) :
I have 1 input (I1) and 4 (O1, O2, O3, O4) outputs.
At input port is 3.3V all time and when push on reset button input is in "0".
I want next:
First situation: If I press reset less 0.5s outputs must be: O1= GND, O2=5V, O3=0 (not GND), O4=0; (if press time is 0.3 for ex. the outputs must be executed)
Second situation: If I press more or equal like 0.5s outputs must be: O1= 0 (not GND), O2=0, O3=GND, O4=5V; (when press time = 0.5s the ouptuts must be executed)
I think 12C508 or 509 is good for what I need but I'm not sure . I have and 5V for Vdd.
I have mikroBasic software. So, if code is for mikroBasic is verry good. I compile them after I have the code. But isn't bad and if is write in asm.
I hope my explication is good
Thanks, thanks, th.........