MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 48

  • 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 47
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub function Lo(dim Par as byte..longint) as byte
Description Returns byte 0 of <Par>, assuming that word/integer comprises bytes 1 and 0, and longint comprises bytes 3, 2,
1, and 0.
Example
Lo(A) ' returns lower byte of variable A
5.1.5 Hi – Extract one byte from the specified parameter
Prototype
sub function Hi(dim arg as word..longint) as byte
Description Returns byte 1 of <Par>, assuming that word/integer comprises bytes 1 and 0, and longint comprises bytes 3, 2,
1, and 0.
Example
Hi(Aa) ' returns hi byte of variable Aa
5.1.6 Higher – Extract one byte from the specified parameter
Prototype
sub function Higher(dim Par as longint) as byte
Description Returns byte 2 of <Par>, assuming that longint comprises bytes 3, 2, 1, and 0.
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (6 sur 112)05/11/2004 02:20:52
Vista de pagina 47
1 2 ... 43 44 45 46 47 48 49 50 51 52 53 ... 193 194

Comentarios a estos manuales

Sin comentarios