**** done by #define INPUT(x)
DIR(x)=0 *****
INPUT will set the pin corresponding to expression to an input.
INPUT and OUTPUT were added for PBASIC compatability, same function as DIR(x)= 0.
The ARMmite allows control of 24 pins (0..23), with pins 16..23 shared with the AD pins. On reset or power up the AD pins are configured as AD inputs. To change those to digital IOs, the user must individually specify a control direction using INPUT x, OUTPUT x, DIR(x), or IO(x) commands. After that they will remain digital IOs until the next reset or power up.
Making a pin an INPUT will also tri-state that pin.
For the ARMmite, ARMmite PRO, ARMexpress and ARMexpress LITE these pin numbers correspond to the pin numbers shown in the Hardware Section. The numbering was assigned by physical location on the board. So DIR, HIGH, IN, INPUT, IO, LOW, OUT and OUTPUT use these physical pin assignments. But P0(pin) will use the bit assigned by NXP. Going forward new board designs will maintain the bit assignment from NXP for all keywords.
For the ARMweb, DINkit, SuperPRO, PROplus and PROstart these pin numbers correspond only to the Port 0 assigned by NXP, for instance DIR 3 corresponds to P0.3
For port pins after Port 0, use the P1 .. P4 commands, or a #define using FIOxDIR below.
To extend these to ports for the SuperPRO INPUT/OUTPUT BASIC style use the followimg macros