AND inputs

peter howarth

New Member
how do i program a picaxe such that i can get an output when 2 or more inputs have to ANDed together before allowing an output, can anyone provide examples of codes relating to this programming function type?
 

nick12ab

Senior Member
As from your previous postings it seems that you like to use flowcharts, Programming Editor also has a graphical way of implementing logic on PICAXE. Click New > Logic on the File menu and you'll be greeted with eight inputs and eight outputs on a background of yellow with black polka dots (the grid). You can move the inputs and outputs to wherever you want them and you can add NOT,AND, NAND, OR, NOR, XOR and XNOR gates to the editing area and draw lines to connect the gates to each other.



ADDED: The 'logic' mode looks very much like the outdated flowchart mode which has been replaced by Logicator and is likely to be exactly the same just with no flowchart commands and with logic gates instead. Technical has previously said that they are rewriting Programming Editor for the new version so the 'logic' mode might not appear in the new version of Programming Editor. It would be beneficial for you to learn the code approach as posted by Technical. You can find out how to do the other logic gates in BASIC by using the 'Convert to BASIC' option on a logic sheet with the gate you want to learn about wired up.
 
Top