Page 1 of 1

Pic16f777

Posted: Sun May 26, 2013 4:02 pm
by josem-mp
Hi all, I'm trying to make a program PIC16F777.
Attached is a part of the program where A0 does not work, and A4 is working properly.

anyone know what may be the cause.

thanks

Re: Pic16f777

Posted: Sun May 26, 2013 4:52 pm
by dazz
Hi
Firstly can you sign up to the relevant forums using the link in my sig, as it makes it easier for us to help as we can then see which version you are using
what isn't working for you as when i run the flowchart, its doing what you ask it to, i've added a switch and led
the way you have your decision branches, both outputs will be high /change the state of the inputs and outputs will go low
What exactly do you need your chart to do

Regards
Dazz

Re: Pic16f777

Posted: Sun May 26, 2013 5:42 pm
by josem-mp
When active D3 A0 has to shut down, and when you have to turn off active A4 D2.
In the simulator it does well but no plate.

Re: Pic16f777

Posted: Sun May 26, 2013 6:59 pm
by dazz
Hi
Thanks for signing up to the v5 forums.
Sorry i'm struggling to understand i think its the language barrier
do you want it to work like this

if a0=1 and a4=0 then d3=1 d2=0
if a4=1 and a0=0 then d2=1 d3=0
is that what your after ??
can you post yor full flowchart

Regards
Dazz

Re: Pic16f777

Posted: Sun May 26, 2013 7:36 pm
by josem-mp
Yes, is correct.

Re: Pic16f777

Posted: Sun May 26, 2013 7:45 pm
by josem-mp
it is the diagram.
the left macro is functioning properly.
The right macro does not work correctly.