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

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

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

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

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
viewtopic.php?f=29&t=7167&p=17597&hilit=switch+active+high#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