Monitoring Port A and B at the same time

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
alb10811
Posts: 7
Joined: Sun Jan 23, 2011 4:01 am
Has thanked: 3 times

Monitoring Port A and B at the same time

Post by alb10811 »

Hi I'm relatively new to pic programming and flowcode, having said that I have a project in which I would like to monitor an input from both Port A and B at the same time as the input may come on either port, so I'm just wondering is there any way to do this?

Thanks for any help

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: Monitoring Port A and B at the same time

Post by Benj »

Hello,

All you have to do is create a loop and then poll each of the ports by reading them into variables and then testing the variables to see if the input you require has been detected. The chip runs at a speed that should allow you to sample both ports for incoming data without missing any pulses.

Post Reply