LOW
 
Syntax

void LOW (int expression );

Description


LOW will set the Port 0 pin corresponding to expression to a negative value (0V) and then set it to an output.

With the SuperPRO and PROplus, NXP has added more configurable port pins.  We are adopting their convention for control of those pins.  FIO0CLR, FIO1CLR, FIO2CLR, and FIO4CLR will set an output low when written with a 1.  More details in the NXP user manuals.

Example

//  set pins 0 to 7 to output and low or to 0 V
for (i=0;i<8; i++) {
  OUTPUT( i );
  LOW( i );
}  

for (i=0;i<8; i++) {
  WAIT(1000);
  OUTPUT( i );
  HIGH ( i );          // set each pin HIGH one after the other every second
}

See also