MikroElektronika PIC Microcontrollers PIC16 Ficha Técnica Página 31

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 30
Programming PIC Microcontrollers in BASIC - mikroElektronika
if (astr > 10) and (astr < 20) then
PORTB = 0xFF
end if
3.3 Logical (Bitwise) Operators
Overview of logical operators in BASIC:
Operator Operation Operand types Result type
not bitwise negation byte, word,
short, integer,
long
byte, word,
short, integer,
long
and bitwise and byte, word,
short, integer,
long
byte, word,
short, integer,
long
or bitwise or byte, word,
short, integer,
long
byte, word,
short, integer,
long
xor bitwise xor byte, word,
short, integer,
long
byte, word,
short, integer,
long
<< bit shift left byte, word,
short, integer,
long
byte, word,
short, integer,
long
>> bit shift right byte, word,
short, integer,
long
byte, word,
short, integer,
long
<< : shift left the operand for a number of bit places specified in the right operand
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/03.htm (4 sur 6)05/11/2004 02:14:47
Vista de página 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 193 194

Comentários a estes Manuais

Sem comentários