MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 194
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
Programming PIC Microcontrollers in BASIC - mikroElektronika
(must be positive and less then 255).
>> : shift right the operand for a number of bit places specified in the right operand
(must be positive and less then 255).
For example, if you need to extract the higher byte, you can do it like this:
dim temp as word
main:
TRISA = word(temp >> 8)
end.
3.4 Relation Operators (Comparison
Operators)
Relation operators (Comparison operators) are commonly used in conditional and loop
statements for controlling the program flow. Overview of relation operators in BASIC:
Operator Operation Operand types Result type
= equality All simple types True or False
<> inequality All simple types True or False
< less-than All simple types True or False
> greater-than All simple types True or False
<= less-than-or-equal-to All simple types True or False
>= greater-than-or-equal-
to
All simple types True or False
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/03.htm (5 sur 6)05/11/2004 02:14:47
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 193 194

Comentarios a estos manuales

Sin comentarios