MikroElektronika PIC Microcontrollers PIC16 Datový list Strana 49

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 194
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 48
1 2 ... 44 45 46 47 48 49 50 51 52 53 54 ... 193 194

Komentáře k této Příručce

Žádné komentáře