Switch Simulation vrs Target

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Posts: 19
Joined: Thu Mar 08, 2012 9:34 pm
Been thanked: 2 times

Switch Simulation vrs Target

Postby Collimare » Wed Jun 06, 2012 5:04 pm

I am slowly getting all my amateur issues resolved. Thanks for all the help and patience Ben and Dave!

My target has pull ups on the switch inputs so it needs an active low function. If I set the switch active low, the function wait until low, it works correctly in the target but the simulation is backwards forcing me to set the switch to active high, function wait until high, to run the simulation and then back to lows to program target. What am I missing here?

Thank you very much!
(12 KiB) Downloaded 80 times
(12 KiB) Downloaded 77 times

Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 514 times
Been thanked: 467 times

Re: Switch Simulation vrs Target

Postby dazz » Thu Jun 07, 2012 11:04 am

Hi i was caught out like that but have a read of these links and it should help

use this link whilst reading the above link( steves reply is the one you need to digest http://www.winpicprog.co.uk/pic_tutorial_extras.htm


Also what are you trying to do in your flowchart im assuming you want the LED to flash 5 times when the button is pressed is thas right ? , if so let me know and i can pop up an alternative flowchart hth
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php