Problem output ports

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Problem output ports

Post by wayne millard »

Hi

The problem that i have is that i read a input on port A0 and it seems to affect output ports. if i output a logic one on any of the ports it go's to 5V if i set the port to 0V it go's to 3.2v and only go's to 0v if i connect A0 to 0V.

Can someone help?
Wayne Millard :(
Last edited by wayne millard on Tue Jul 24, 2012 9:04 pm, edited 2 times in total.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times

Re: Problem output ports

Post by kersing »

A little more information (what hardware are you using, which version of flowcode? I suspect the PIC version, but am I right? What is the target chip, which ports are you using for output, what is connected to the output ports) might be useful. A minimal FC that demonstrates the problem would be useful as well.
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Re: Problem output ports

Post by wayne millard »

Hi kersing

Im using a 18F4520 and i have used port C and port D.
And using Flowcode V5

Thanks for any help
Wayne Millard

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Problem output ports

Post by Benj »

Hello Wayne,

Which version of v5 are you using? I think v5.2 is the current latest for PIC.

Are you controlling the output of the ports based on the input from RA0 at all? Maybe caused by a floating input pin?

Have you got caps near the chip? Are you using our hardware or your own board?

wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Re: Problem output ports

Post by wayne millard »

Hi Benj,

Thanks for getting back to me out of hours.
im using output masking i control one output to control direction of a motor and one output that is timed from timer2 interupt for 5 seconds then go's low.
I have a contact closer that controls the direction and rs232 can do this as well.
Im using v5.2 and the input pin has a pull up on it.

Thanks
Wayne :D

wayne millard
Posts: 234
Joined: Thu May 31, 2007 2:18 pm
Has thanked: 7 times
Been thanked: 12 times

Re: Problem output ports

Post by wayne millard »

Hi Benj,

im using a pcb that i have made. and all ic's have 100n as standed.

Wayne

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times

Re: Problem output ports

Post by Enamul »

Hi,
you said...
Im using a 18F4520 and i have used port C and port D.
At the same time you are saying...
The problem that i have is that i read a input on port A0 and it seems to affect output ports. if i output a logic one on any of the ports it go's to 5V if i set the port to 0V it go's to 3.2v and only go's to 0v if i connect A0 to 0V.
So, do you mean that input at A0 is affecting output in PORTC or PORTD which is quite surprising? Are you using any of the ADC channel?
Enamul
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply