MikroElektronika PIC Microcontrollers PIC16 Ficha de datos Pagina 49

  • 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 48
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
Higher(Aaaa) ' returns byte next to the highest byte of variable Aaaa
5.1.7 Highest – Extract one byte from the specified parameter
Prototype
sub function Highest(dim arg as longint) as byte
Description Returns byte 3 of <Par>, assuming that longint comprises bytes 3, 2, 1, and 0.
Example
Highest(Aaaa) ' returns the highest byte of variable Aaaa
5.1.8 Delay_us – Software delay in us
Prototype
sub procedure Delay_us(const Count as word)
Description Routine creates a software delay in duration of <Count> microseconds.
Example
Delay_us(100) ' creates software delay equal to 1s
5.1.9 Delay_ms – Software delay in ms
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (7 sur 112)05/11/2004 02:20:52
Vista de pagina 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 193 194

Comentarios a estos manuales

Sin comentarios