11.07.2015 Views

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

PICBASIC PLUS LITE Manual - Profe Saul

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.41. LOW (or CLEAR)<strong>PICBASIC</strong> <strong>PLUS</strong> CompilerSyntax :Overview :Operators :LOW (or CLEAR) Variable or Variable.BitPlace a variable or bit in a low state. For a variable, this means fillingit with 0’s. For a bit this means setting it to 0.Variable can be any variable or register, such as a PortVariable.Bit can be any variable and bit combination, i.e. PortA.1Example :SYMBOL LED = PORTB.4LOW LEDCLEAR PORTB.3LOW STATUS.0‘ Clear the carry flagNotes :There is no difference between the LOW and CLEAR commands.If a port register is targeted using LOW, then it is automatically set tooutput.See also :DIM, HIGH, SYMBOLConnect tospecifiedPIC pin470LEDThe above diagram shows the connection of an LED to any of thepins of a PIC. A resistor must be used in series with the LED to limitthe current supplied to it.78Copyright Crownhill 2001

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!