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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PICBASIC</strong> <strong>PLUS</strong> Compiler5.29. HIGH (or SET)Syntax :Overview :Operators :HIGH (or SET) Variable or Variable.BitPlace a variable or bit in a high state. For a variable, this means fillingit with 1’s. For a bit this means setting it to 1.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.4HIGH LEDSET PORTB.3HIGH STATUS.0‘ Set the carry flag highNotes :There is no difference between the SET and HIGH commands.If a port register is targeted using HIGH, then it is automatically set tooutput.See also :DIM, LOW, 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.64Copyright Crownhill 2001

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

Saved successfully!

Ooh no, something went wrong!