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

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

Switch Simulation vrs Target

Post by Collimare »

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!
Attachments
Test16F684target.fcf
(12 KiB) Downloaded 209 times
Test16F684Simulation.fcf
(12 KiB) Downloaded 206 times

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Switch Simulation vrs Target

Post by dazz »

Hi i was caught out like that but have a read of these links and it should help
http://www.matrixmultimedia.com/mmforum ... igh#p17597

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

hth

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

Post Reply