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
Monitoring Port A and B at the same time
Moderator: Benj
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel